package
0.2.2
Repository: https://github.com/fractal-platform/fractal.git
Documentation: pkg.go.dev

# Functions

DeleteBlock removes all block data associated with a hash.
DeleteBlockChilds removes the height to hash mapping.
No description provided by the author
DeleteHashList delete the hash assigned to a block round.
No description provided by the author
DeleteReceipts removes all receipt data associated with a block hash.
Return blocks of reorg chain, include common ancestor (the first element of the result slice is the common ancestor, and the last element of the result slice is the new header).
HasBlock verifies the existence of a block header corresponding to the hash.
HasTxPkg verifies the existence of a txpkg corresponding to the hash.
ReadBlockBody retrieves the block corresponding to the hash.
ReadBlockBodyRLP retrieves a block body in its raw RLP database encoding.
ReadBlockChilds returns the block childs assigned to a hash.
ReadBlockHeader retrieves the block corresponding to the hash.
ReadBlockHeaderRLP retrieves a block header in its raw RLP database encoding.
ReadBlockReceivePath retrieves the block corresponding to the hash.
No description provided by the author
ReadBloom retrieves the transaction bloom belonging to a block.
ReadBloomBits retrieves the compressed bloom bit vector belonging to the given section and bit index from the.
No description provided by the author
No description provided by the author
No description provided by the author
ReadChainConfig retrieves the chain config.
ReadDatabaseVersion retrieves the version number of the database.
ReadGenesisBlockHash retrieves the hash of the genesis block.
ReadHashListByBlockBackward retrieves the hash older than the block b.
ReadHashListByBlockRange retrieves the hash assigned to a block range (b1, b2].
ReadHashListByRound retrieves the hash assigned to a round step range(related to param round).
ReadHashListByRoundRange retrieves the hash assigned to a round range (r1, r2].
ReadHeadBlockHash retrieves the hash of the current canonical head block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadReceipts retrieves all the transaction receipts belonging to a block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteBlock stores a block header into the database.
WriteBlockChilds returns the block childs assigned to a hash.
WriteBlockStateCheck writes the state check enum into db.
WriteReceipts stores the transaction bloom belonging to a block.
WriteBloomBits stores the compressed bloom bits vector belonging to the given section and bit index.
No description provided by the author
No description provided by the author
WriteChainConfig writes the chain config.
WriteDatabaseVersion stores the version number of the database.
WriteGenesisBlockHash stores the genesis block's hash.
WriteHashList stores the hash assigned to a block round.
WriteHeadBlockHash stores the head block's hash.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WritePkgPoolHashList stores the pending pkgs in pkgPool.
WriteReceipts stores all the transaction receipts belonging to a block.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Variables

No description provided by the author

# 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.

# Type aliases

No description provided by the author