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