package
2.0.0+incompatible
Repository: https://github.com/quarkchain/goquarkchain.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DeleteBlock removes block data associated with a hash.
DeleteBlockContentLookupEntry removes all transaction data associated with a hash.
DeleteCanonicalHash removes the number to hash canonical mapping.
No description provided by the author
DeleteBlock removes all block data associated with a hash.
No description provided by the author
DeleteMinorBlockHeader removes all block header data associated with a hash.
No description provided by the author
DeleteReceipts removes all receipt data associated with a block hash.
DeleteRootBlock removes all block data associated with a hash.
DeleteRootBlockHeader removes all block header data associated with a hash.
FindCommonMinorAncestor returns the last common ancestor of two block headers.
FindCommonRootAncestor returns the last common ancestor of two block headers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HasBlock verifies the existence of a block body corresponding to the hash.
No description provided by the author
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.
No description provided by the author
No description provided by the author
ReadBlockContentLookupEntry retrieves the positional metadata associated with a transaction hash to allow retrieving the transaction or receipt by hash.
ReadBloomBits retrieves the compressed bloom bit vector belonging to the given section and bit index from the.
ReadCanonicalHash retrieves the hash assigned to a canonical block number.
ReadChainConfig retrieves the consensus settings based on the given genesis hash.
No description provided by the author
No description provided by the author
ReadDatabaseVersion retrieves the version number of the database.
ReadFastTrieProgress retrieves the number of tries nodes fast synced to allow reporting correct numbers across restarts.
No description provided by the author
ReadHeadBlockHash retrieves the hash of the current canonical head block.
ReadHeaderNumber returns the header number assigned to a hash.
ReadHeadFastBlockHash retrieves the hash of the current fast-sync head block.
ReadHeadHeaderHash retrieves the hash of the current canonical head header.
No description provided by the author
No description provided by the author
ReadMinorBlock retrieves the block body corresponding to the hash.
ReadMinorBlockHeader retrieves the block header corresponding to the hash.
ReadMinorHeader retrieves a specific MinorHeader from the database, along with its added positional metadata.
ReadPreimage retrieves a single preimage of the provided hash.
No description provided by the author
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.
ReadRootBlock retrieves the block rootBlockBody corresponding to the hash.
ReadRootBlockHeader retrieves the block header corresponding to the hash.
No description provided by the author
ReadTransaction retrieves a specific transaction from the database, along with its added positional metadata.
WriteBlockContentLookupEntriesWithCrossShardHashList stores a positional metadata for every transaction from a block, enabling hash based transaction and receipt lookups.
WriteBloomBits stores the compressed bloom bits vector belonging to the given section and bit index.
WriteCanonicalHash stores the hash assigned to a canonical block number.
WriteChainConfig writes the chain config settings to the database.
No description provided by the author
No description provided by the author
No description provided by the author
WriteDatabaseVersion stores the version number of the database.
WriteFastTrieProgress stores the fast sync trie process counter to support retrieving it across restarts.
No description provided by the author
WriteHeadBlockHash stores the head block's hash.
WriteHeadFastBlockHash stores the hash of the current fast-sync head block.
WriteHeadHeaderHash stores the hash of the current canonical head header.
No description provided by the author
No description provided by the author
WriteMinorBlock storea a block body into the database.
No description provided by the author
No description provided by the author
No description provided by the author
WritePreimages writes the provided set of preimages to the database.
WriteReceipts stores all the transaction receipts belonging to a block.
WriteRootBlock storea a block rootBlockBody into the database.
No description provided by the author
WriteRootBlockHeader stores a block header into the database and also stores the hash- to-number mapping.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

BloomBitsIndexPrefix is the data table of a chain indexer to track its progress.

# Structs

No description provided by the author
LookupEntry 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.

# Type aliases

No description provided by the author