# Functions
DeleteBlock removes all block data associated with a hash.
DeleteBody removes all block body data associated with a hash.
DeleteCanonicalHash removes the number to hash canonical mapping.
DeleteBody removes all block body data associated with a hash.
DeleteFtLookupEntry removes all fruit data associated with a hash.
DeleteHeader removes all block header data associated with a hash.
DeleteTd removes all block total difficulty 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.
HasBody verifies the existence of a block body corresponding to the hash.
HasHeader verifies the existence of a block header corresponding to the hash.
ReadBlock retrieves an entire block corresponding to the hash, assembling it back from the stored header and body.
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.
ReadCommitteeStates returns the all committee members states flag sepecified with fastblock height.
ReadDatabaseVersion retrieves the version number of the database.
ReadFHsRLP retrieves the fruits head in RLP encoding.
ReadFruit retrieves a specific fruit from the database, along with its added positional metadata.
ReadFruitHead retrieves a specific fruit from the database, along with its added positional metadata.
ReadBody retrieves the block body corresponding to the hash.
ReadFtLookupEntry retrieves the positional metadata associated with a fruit hash to allow retrieving the fruit by hash.
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.
ReadLastDataSet retrieves the number of tries nodes fast synced to allow reporting correct numbers across restarts.
ReadLightCheckPoint retrieves the number of tries nodes fast synced to allow reporting correct numbers across restarts.
ReadTd retrieves a block's total difficulty corresponding to the hash.
WriteBlock serializes a block into the database, header and body separately.
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.
WriteCommitteeStates store the all committee members sepecified with fastblock height.
WriteDatabaseVersion stores the version number of the database.
WriteBodyRLP stores an RLP encoded block body into the database.
WriteBody storea a block body into the database.
WriteFtHeadLookupEntries stores a positional metadata for every fruit from a block, enabling hash based fruit lookups.
WriteFtLookupEntries stores a positional metadata for every fruit from a block, enabling hash based fruit lookups.
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.
WriteLastDataSet stores the fast sync trie process counter to support retrieving it across restarts.
WriteLightCheckPoint stores the fast sync trie process counter to support retrieving it across restarts.
WriteTd stores the total difficulty of a block into the database.
# Structs
FtLookupEntry is a positional metadata to help looking up the data content of a fruit.
# 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.