Versions in this module Expand all Collapse all v1 v1.1.0 Sep 13, 2021 Changes in this version + var BloomBitsIndexPrefix = []byte("iB") + func DeleteBlock(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteBlockWithoutNumber(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteBody(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteCanonicalHash(db evrdb.KeyValueWriter, number uint64) + func DeleteHeader(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteHeaderNumber(db evrdb.KeyValueWriter, hash common.Hash) + func DeleteReceipts(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteTd(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteTxLookupEntry(db evrdb.KeyValueWriter, hash common.Hash) + func FindCommonAncestor(db evrdb.Reader, a, b *types.Header) *types.Header + func HasBody(db evrdb.Reader, hash common.Hash, number uint64) bool + func HasHeader(db evrdb.Reader, hash common.Hash, number uint64) bool + func HasReceipts(db evrdb.Reader, hash common.Hash, number uint64) bool + func InitDatabaseFromFreezer(db evrdb.Database) error + func InspectDatabase(db evrdb.Database) error + func NewDatabase(db evrdb.KeyValueStore) evrdb.Database + func NewDatabaseWithFreezer(db evrdb.KeyValueStore, freezer string, namespace string) (evrdb.Database, error) + func NewLevelDBDatabase(file string, cache int, handles int, namespace string) (evrdb.Database, error) + func NewLevelDBDatabaseWithFreezer(file string, cache int, handles int, freezer string, namespace string) (evrdb.Database, error) + func NewMemoryDatabase() evrdb.Database + func NewMemoryDatabaseWithCap(size int) evrdb.Database + func NewTable(db evrdb.Database, prefix string) evrdb.Database + func ReadAllHashes(db evrdb.Iteratee, number uint64) []common.Hash + func ReadBlock(db evrdb.Reader, hash common.Hash, number uint64) *types.Block + func ReadBloomBits(db evrdb.KeyValueReader, bit uint, section uint64, head common.Hash) ([]byte, error) + func ReadBody(db evrdb.Reader, hash common.Hash, number uint64) *types.Body + func ReadBodyRLP(db evrdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadCanonicalHash(db evrdb.Reader, number uint64) common.Hash + func ReadChainConfig(db evrdb.KeyValueReader, hash common.Hash) *params.ChainConfig + func ReadDatabaseVersion(db evrdb.KeyValueReader) *uint64 + func ReadFastTrieProgress(db evrdb.KeyValueReader) uint64 + func ReadHeadBlockHash(db evrdb.KeyValueReader) common.Hash + func ReadHeadFastBlockHash(db evrdb.KeyValueReader) common.Hash + func ReadHeadHeaderHash(db evrdb.KeyValueReader) common.Hash + func ReadHeader(db evrdb.Reader, hash common.Hash, number uint64) *types.Header + func ReadHeaderNumber(db evrdb.KeyValueReader, hash common.Hash) *uint64 + func ReadHeaderRLP(db evrdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadPreimage(db evrdb.KeyValueReader, hash common.Hash) []byte + func ReadRawReceipts(db evrdb.Reader, hash common.Hash, number uint64) types.Receipts + func ReadReceipt(db evrdb.Reader, hash common.Hash, config *params.ChainConfig) (*types.Receipt, common.Hash, uint64, uint64) + func ReadReceipts(db evrdb.Reader, hash common.Hash, number uint64, config *params.ChainConfig) types.Receipts + func ReadReceiptsRLP(db evrdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadTd(db evrdb.Reader, hash common.Hash, number uint64) *big.Int + func ReadTdRLP(db evrdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadTransaction(db evrdb.Reader, hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64) + func ReadTxLookupEntry(db evrdb.Reader, hash common.Hash) *uint64 + func WriteAncientBlock(db evrdb.AncientWriter, block *types.Block, receipts types.Receipts, ...) int + func WriteBlock(db evrdb.KeyValueWriter, block *types.Block) + func WriteBloomBits(db evrdb.KeyValueWriter, bit uint, section uint64, head common.Hash, ...) + func WriteBody(db evrdb.KeyValueWriter, hash common.Hash, number uint64, body *types.Body) + func WriteBodyRLP(db evrdb.KeyValueWriter, hash common.Hash, number uint64, rlp rlp.RawValue) + func WriteCanonicalHash(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func WriteChainConfig(db evrdb.KeyValueWriter, hash common.Hash, cfg *params.ChainConfig) + func WriteDatabaseVersion(db evrdb.KeyValueWriter, version uint64) + func WriteFastTrieProgress(db evrdb.KeyValueWriter, count uint64) + func WriteHeadBlockHash(db evrdb.KeyValueWriter, hash common.Hash) + func WriteHeadFastBlockHash(db evrdb.KeyValueWriter, hash common.Hash) + func WriteHeadHeaderHash(db evrdb.KeyValueWriter, hash common.Hash) + func WriteHeader(db evrdb.KeyValueWriter, header *types.Header) + func WriteHeaderNumber(db evrdb.KeyValueWriter, hash common.Hash, number uint64) + func WritePreimages(db evrdb.KeyValueWriter, preimages map[common.Hash][]byte) + func WriteReceipts(db evrdb.KeyValueWriter, hash common.Hash, number uint64, ...) + func WriteTd(db evrdb.KeyValueWriter, hash common.Hash, number uint64, td *big.Int) + func WriteTxLookupEntries(db evrdb.KeyValueWriter, block *types.Block) + type LegacyTxLookupEntry struct + BlockHash common.Hash + BlockIndex uint64 + Index uint64