# Functions
DeleteAccountSnapshot removes the snapshot entry of an account trie leaf.
No description provided by the author
DeleteBlock removes all block data associated with a hash.
DeleteReceipts removes all receipt data associated with a block hash.
DeleteBody removes all block body data associated with a hash.
DeleteCanonicalHash removes the number to hash canonical mapping.
DeleteHeader removes all block header data associated with a hash.
DeleteReceipts removes all receipt data associated with a block hash.
No description provided by the author
DeleteSnapshotDisabled deletes the flag keeping the snapshot maintenance disabled.
DeleteSnapshotGenerator deletes the serialized snapshot generator saved at the last shutdown.
DeleteSnapshotJournal deletes the serialized in-memory diff layers saved at the last shutdown.
DeleteSnapshotRecoveryNumber deletes the block number of the last persisted snapshot layer.
DeleteSnapshotRoot deletes the hash of the block whose state is contained in the persisted snapshot.
DeleteSnapshotSyncStatus deletes the serialized sync status saved at the last shutdown.
DeleteStorageSnapshot removes the snapshot entry of an storage trie leaf.
DeleteTxLookupEntry removes all transaction data associated with a hash.
FindCommonAncestor returns the last common ancestor of two block headers.
HasBody verifies the existence of a block body corresponding to the hash.
HasHeader verifies the existence of a block header corresponding to the hash.
HasReceipts verifies the existence of all the transaction receipts belonging to a block.
HasTxLookupEntry verifies the existence of a txLookup entry corresponding to the hash.
IsCodeKey reports whether the given byte slice is the key of contract code, if so return the raw code hash as well.
IterateStorageSnapshots returns an iterator for walking the entire storage space of a specific account.
NewFreezerTable opens the given path as a freezer table.
ReadAccountSnapshot retrieves the snapshot entry of an account trie leaf.
No description provided by the author
TODO WithBody(body.Transactions,nil) nil: signs []*SignInfo.
No description provided by the author
ReadHeaderRLP retrieves a block header in its raw RLP database encoding.
ReadBloomBits retrieves the compressed bloom bit vector belonging to the given section and bit index from the.
ReadBody retrieves the block body corresponding to the hash.
ReadBodyRLP retrieves the block body (transactions and uncles) in RLP encoding.
ReadCanonicalHash retrieves the hash assigned to a canonical block number.
ReadChainConfig retrieves the consensus settings based on the given genesis hash.
ReadTd retrieves a block's total difficulty corresponding to the hash.
ReadFastTrieProgress retrieves the number of tries nodes fast synced to allow reporting correct numbers across restarts.
ReadHeadBlockHash retrieves the hash of the current canonical head block.
ReadHeader retrieves the block header corresponding to the hash.
ReadHeaderNumber returns the header number assigned to a hash.
ReadHeaderRLP retrieves a block header in its raw RLP database encoding.
ReadHeadFastBlockHash retrieves the hash of the current fast-sync head block.
ReadHeadHeaderHash retrieves the hash of the current canonical head header.
ReadHeadBlockHash retrieves the hash of the current canonical head block.
ReadLastBlockNumber retrieves the hash of the current canonical head block.
ReadPreimage retrieves a single preimage of the provided hash.
ReadReceipt retrieves a specific transaction receipt from the database, along with its added positional metadata.
ReadReceipts retrieves all the transaction receipts belonging to a block.
No description provided by the author
ReadSnapBlock retrieves an snap block corresponding to the hash, assembling it back from the stored header.
ReadSnapshotDisabled retrieves if the snapshot maintenance is disabled.
ReadSnapshotGenerator retrieves the serialized snapshot generator saved at the last shutdown.
ReadSnapshotJournal retrieves the serialized in-memory diff layers saved at the last shutdown.
ReadSnapshotRecoveryNumber retrieves the block number of the last persisted snapshot layer.
ReadSnapshotRoot retrieves the root of the block whose state is contained in the persisted snapshot.
ReadSnapshotSyncStatus retrieves the serialized sync status saved at shutdown.
ReadFastTrieProgress retrieves the number of body and receipt state synced to allow reporting correct numbers across restarts.
ReadStorageSnapshot retrieves the snapshot entry of an storage trie leaf.
ReadTd retrieves a block's total difficulty corresponding to the hash.
ReadTransaction retrieves a specific transaction from the database, along with its added positional metadata.
ReadTxLookupEntry retrieves the positional metadata associated with a transaction hash to allow retrieving the transaction or receipt by hash.
WriteAccountSnapshot stores the snapshot entry of an account trie leaf.
No description provided by the author
WriteBlock serializes a block into the database, header and body separately.
WriteReward serializes a blockReward into the database.
WriteBloomBits stores the compressed bloom bits vector belonging to the given section and bit index.
WriteBody storea a block body into the database.
WriteBodyRLP stores an RLP encoded block body into the database.
WriteCanonicalHash stores the hash assigned to a canonical block number.
WriteChainConfig writes the chain config settings to the database.
WriteTd stores the total difficulty of a block into the database.
WriteFastTrieProgress stores the fast sync trie process counter to support retrieving it across restarts.
WriteHeadBlockHash stores the head block's hash.
WriteHeader stores a block header into the database and also stores the hash- to-number mapping.
WriteHeadFastBlockHash stores the hash of the current fast-sync head block.
WriteHeadHeaderHash stores the hash of the current canonical head header.
WriteHeadBlockHash stores the head block's hash.
WriteLastBlockNumber stores the head block's hash.
WritePreimages writes the provided set of preimages to the database.
WriteReceipts stores all the transaction receipts belonging to a block.
No description provided by the author
WriteSnapshotDisabled stores the snapshot pause flag.
WriteSnapshotGenerator stores the serialized snapshot generator to save at shutdown.
WriteSnapshotJournal stores the serialized in-memory diff layers to save at shutdown.
WriteSnapshotRecoveryNumber stores the block number of the last persisted snapshot layer.
WriteSnapshotRoot stores the root of the block whose state is contained in the persisted snapshot.
WriteSnapshotSyncStatus stores the serialized sync status to save at shutdown.
WriteStateGcBR stores the state sync body and receipt counter to support retrieving it across restarts.
WriteStorageSnapshot stores the snapshot entry of an storage trie leaf.
WriteTd stores the total difficulty of a block into the database.
WriteTxLookupEntries stores a positional metadata for every transaction from a block, enabling hash based transaction and receipt lookups.
# Variables
BloomBitsIndexPrefix is the data table of a chain indexer to track its progress.
CodePrefix + code hash -> account code.
SnapshotAccountPrefix + account hash -> account trie value.
SnapshotStoragePrefix + account hash + storage hash -> storage trie value.
# Structs
TxLookupEntry is a positional metadata to help looking up the data content of a transaction or receipt given only its hash.
# Interfaces
DatabaseDeleter wraps the Delete method of a backing data store.
DatabaseReader wraps the Has and Get method of a backing data store.
DatabaseWriter wraps the Put method of a backing data store.