Versions in this module Expand all Collapse all v1 v1.0.1 Jul 31, 2020 v1.0.0 Jul 3, 2020 Changes in this version + var BloomBitsIndexPrefix = []byte("iB") + var SnapshotAccountPrefix = []byte("a") + var SnapshotStoragePrefix = []byte("o") + func DeleteAccountSnapshot(db yuedb.KeyValueWriter, hash common.Hash) + 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 DeleteSnapshotJournal(db yuedb.KeyValueWriter) + func DeleteSnapshotRoot(db yuedb.KeyValueWriter) + func DeleteStorageSnapshot(db yuedb.KeyValueWriter, accountHash, storageHash common.Hash) + 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 HasTxLookupEntry(db DatabaseReader, hash common.Hash) bool + func IterateStorageSnapshots(db yuedb.Iteratee, accountHash common.Hash) yuedb.Iterator + func NewTable(db yuedb.Database, prefix string) yuedb.Database + func ReadAccountSnapshot(db yuedb.KeyValueReader, hash common.Hash) []byte + 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 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 ReadLastBlockHash(db DatabaseReader) common.Hash + 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 ReadSnapBlock(db DatabaseReader, hash common.Hash, number uint64) *types.Block + func ReadSnapshotJournal(db yuedb.KeyValueReader) []byte + func ReadSnapshotRoot(db yuedb.KeyValueReader) common.Hash + func ReadStateGcBR(db DatabaseReader) uint64 + func ReadStorageSnapshot(db yuedb.KeyValueReader, accountHash, storageHash common.Hash) []byte + 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 WriteAccountSnapshot(db yuedb.KeyValueWriter, hash common.Hash, entry []byte) + 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 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 WriteLastBlockHash(db DatabaseWriter, hash common.Hash) + func WritePreimages(db DatabaseWriter, number uint64, preimages map[common.Hash][]byte) + func WriteReceipts(db DatabaseWriter, hash common.Hash, number uint64, receipts types.Receipts) + func WriteSnapshotJournal(db yuedb.KeyValueWriter, journal []byte) + func WriteSnapshotRoot(db yuedb.KeyValueWriter, root common.Hash) + func WriteStateGcBR(db DatabaseWriter, count uint64) + func WriteStorageSnapshot(db yuedb.KeyValueWriter, accountHash, storageHash common.Hash, entry []byte) + 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