Versions in this module Expand all Collapse all v1 v1.8.21 Jan 21, 2019 Changes in this version + var BloomBitsIndexPrefix = []byte("iB") + func DeleteBlock(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteBody(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteCanonicalHash(db DatabaseDeleter, number uint64) + func DeleteHeader(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteReceipts(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteTd(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteTxLookupEntry(db DatabaseDeleter, hash common.Hash) + func FindCommonAncestor(db DatabaseReader, a, b *types.Header) *types.Header + func HasBody(db DatabaseReader, hash common.Hash, number uint64) bool + func HasHeader(db DatabaseReader, hash common.Hash, number uint64) bool + func HasReceipts(db DatabaseReader, hash common.Hash, number uint64) bool + func ReadBlock(db DatabaseReader, hash common.Hash, number uint64) *types.Block + func ReadBloomBits(db DatabaseReader, bit uint, section uint64, head common.Hash) ([]byte, error) + func ReadBody(db DatabaseReader, hash common.Hash, number uint64) *types.Body + func ReadBodyRLP(db DatabaseReader, hash common.Hash, number uint64) rlp.RawValue + func ReadCanonicalHash(db DatabaseReader, number uint64) common.Hash + func ReadChainConfig(db DatabaseReader, hash common.Hash) *params.ChainConfig + func ReadDatabaseVersion(db DatabaseReader) *uint64 + func ReadFastTrieProgress(db DatabaseReader) uint64 + func ReadHeadBlockHash(db DatabaseReader) common.Hash + func ReadHeadFastBlockHash(db DatabaseReader) common.Hash + func ReadHeadHeaderHash(db DatabaseReader) common.Hash + func ReadHeader(db DatabaseReader, hash common.Hash, number uint64) *types.Header + func ReadHeaderNumber(db DatabaseReader, hash common.Hash) *uint64 + func ReadHeaderRLP(db DatabaseReader, hash common.Hash, number uint64) rlp.RawValue + func ReadPreimage(db DatabaseReader, hash common.Hash) []byte + func ReadReceipt(db DatabaseReader, hash common.Hash) (*types.Receipt, common.Hash, uint64, uint64) + func ReadReceipts(db DatabaseReader, hash common.Hash, number uint64) types.Receipts + func ReadTd(db DatabaseReader, hash common.Hash, number uint64) *big.Int + func ReadTransaction(db DatabaseReader, hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64) + func ReadTxLookupEntry(db DatabaseReader, hash common.Hash) (common.Hash, uint64, uint64) + func WriteBlock(db DatabaseWriter, block *types.Block) + func WriteBloomBits(db DatabaseWriter, bit uint, section uint64, head common.Hash, bits []byte) + func WriteBody(db DatabaseWriter, hash common.Hash, number uint64, body *types.Body) + func WriteBodyRLP(db DatabaseWriter, hash common.Hash, number uint64, rlp rlp.RawValue) + func WriteCanonicalHash(db DatabaseWriter, hash common.Hash, number uint64) + func WriteChainConfig(db DatabaseWriter, hash common.Hash, cfg *params.ChainConfig) + func WriteDatabaseVersion(db DatabaseWriter, version uint64) + func WriteFastTrieProgress(db DatabaseWriter, count uint64) + func WriteHeadBlockHash(db DatabaseWriter, hash common.Hash) + func WriteHeadFastBlockHash(db DatabaseWriter, hash common.Hash) + func WriteHeadHeaderHash(db DatabaseWriter, hash common.Hash) + func WriteHeader(db DatabaseWriter, header *types.Header) + func WritePreimages(db DatabaseWriter, preimages map[common.Hash][]byte) + func WriteReceipts(db DatabaseWriter, hash common.Hash, number uint64, receipts types.Receipts) + func WriteTd(db DatabaseWriter, hash common.Hash, number uint64, td *big.Int) + func WriteTxLookupEntries(db DatabaseWriter, block *types.Block) + type DatabaseDeleter interface + Delete func(key []byte) error + type DatabaseReader interface + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + type DatabaseWriter interface + Put func(key []byte, value []byte) error + type TxLookupEntry struct + BlockHash common.Hash + BlockIndex uint64 + Index uint64