package
0.0.0-rc7.7
Repository: https://github.com/onther-tech/plasma-evm.git
Documentation: pkg.go.dev
# Functions
DeleteBlock removes all block data associated with a hash.
DeleteBlockWithoutNumber removes all block data associated with a hash, except the hash to number mapping.
DeleteBody removes all block body data associated with a hash.
DeleteCanonicalHash removes the number to hash canonical mapping.
No description provided by the author
DeleteHeader removes all block header data associated with a hash.
DeleteHeaderNumber removes hash->number mapping.
DeleteInvalidExitReceiptsLookupEntry removes matadata for invalid exit receipts.
DeleteReceipts removes all receipt data associated with a block hash.
DeleteTd removes all block total difficulty data associated with a hash.
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.
InitDatabaseFromFreezer reinitializes an empty database from a previous batch of frozen ancient blocks.
InspectDatabase traverses the entire database and checks the size of all different categories of data.
NewDatabase creates a high level database on top of a given key-value data store without a freezer moving immutable chain segments into cold storage.
NewDatabaseWithFreezer creates a high level database on top of a given key- value data store with a freezer moving immutable chain segments into cold storage.
NewLevelDBDatabase creates a persistent key-value database without a freezer moving immutable chain segments into cold storage.
NewLevelDBDatabaseWithFreezer creates a persistent key-value database with a freezer moving immutable chain segments into cold storage.
NewMemoryDatabase creates an ephemeral in-memory key-value database without a freezer moving immutable chain segments into cold storage.
NewMemoryDatabaseWithCap creates an ephemeral in-memory key-value database with an initial starting capacity, but without a freezer moving immutable chain segments into cold storage.
NewTable returns a database object that prefixes all keys with a given string.
ReadAllHashes retrieves all the hashes assigned to blocks at a certain heights, both canonical and reorged forks included.
ReadBlock retrieves an entire block corresponding to the hash, assembling it back from the stored header and body.
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.
ReadDatabaseVersion retrieves the version number of the database.
No description provided by the author
No description provided by the author
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.
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.
ReadInvalidExitReceipts retrieves all the invalid exit receipts.
ReadInvalidExitReceiptsLookupEntry retrieves the metadata associated with invalid exit receipts.
No description provided by the author
ReadPreimage retrieves a single preimage of the provided hash.
ReadRawReceipts retrieves all the transaction receipts belonging to a block.
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, including its correspoinding metadata fields.
ReadReceiptsRLP retrieves all the transaction receipts belonging to a block in RLP encoding.
No description provided by the author
ReadRootchainBlockNumber returns the block number for rootchain contract event.
No description provided by the author
ReadTd retrieves a block's total difficulty corresponding to the hash.
ReadTdRLP retrieves a block's total difficulty corresponding to the hash in RLP encoding.
No description provided by the author
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.
No description provided by the author
WriteAncientBlock writes entire block data into ancient store and returns the total written size.
WriteBlock serializes a block into the database, header and body separately.
WriteBloomBits stores the compressed bloom bits vector belonging to the given section and bit index.
WriteBody stores 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.
WriteDatabaseVersion stores the version number of the database.
No description provided by the author
No description provided by the author
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.
WriteHeader stores a block header into the database and also stores the hash- to-number mapping.
WriteHeaderNumber stores the hash->number mapping.
WriteHeadFastBlockHash stores the hash of the current fast-sync head block.
WriteHeadHeaderHash stores the hash of the current canonical head header.
WriteInvalidExitReceiptsLookupEntry stores a metadata for invalid exit receipts.
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.
No description provided by the author
WriteRootchainBlockNumber stores a block number for rootchain contract event.
No description provided by the author
WriteTd stores the total difficulty of a block into the database.
No description provided by the author
WriteTxLookupEntries stores a positional metadata for every transaction from a block, enabling hash based transaction and receipt lookups.
No description provided by the author
# Variables
BloomBitsIndexPrefix is the data table of a chain indexer to track its progress.
# Structs
InvalidExitReceiptsLookupEntry is a positional metadata to help looking up the data content of a invalid exit receipt.
LegacyTxLookupEntry is the legacy TxLookupEntry definition with some unnecessary fields.