package
0.0.0-20250119000602-809120120630
Repository: https://github.com/n42blockchain/n42.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
BlockBodyKey = num (uint64 big endian) + hash.
No description provided by the author
No description provided by the author
ConfigKey = configPrefix + hash.
No description provided by the author
EncodeBlockNumber encodes a block number as big endian uint64.
AddrHash + incarnation + StorageHashPrefix.
address hash + incarnation prefix.
HeaderKey = num (uint64 big endian) + hash.
LogKey = blockN (uint64 big endian) + txId (uint32 big endian).
AddrHash + incarnation + KeyHash For contract storage (for plain state).
address hash + incarnation prefix (for plain state).
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
address(un hashed) -> account encoded.
blockNum_u64 -> address + account(encoded).
address + shard_id_u64 -> roaring bitmap - list of block where it changed.
block_num_u64 + hash -> block body.
Block.
tbl_sequence_u64 -> (tx).
Block.
Indices for call traces - have the same format as LogTopicIndex and LogAddressIndex Store bitmap indices - in which block number we saw calls from (CallFromIndex) or to (CallToIndex) some addresses.
Block.
CallTraceSet is the name of the table that contain the mapping of block number to the set (sorted) of all accounts touched by call traces.
StateInfo.
contract code hash -> contract code.
key - addressHash+incarnationvalue - code hash.
DatabaseInfo is used to store information about data layout.
Deposit info.
headBlockKey tracks the latest know full block's hash.
block_num_u64 -> header hash.
header_hash -> num_u64.
block_num_u64 + hash -> header.
block_num_u64 + hash -> td.
Block.
No description provided by the author
address -> incarnation of account when it was last deleted.
block_num_u64 + txId -> logs of transaction.
Block.
Stores bitmap indices - in which block numbers saw logs of given 'address' or 'topic' [addr or topic] + [2 bytes inverted shard number] -> bitmap(blockN) indices are sharded - because some bitmaps are >1Mb and when new incoming blocks process it updates ~300 of bitmaps - by append small amount new values.
block_number_u64 -> max_tx_num_in_block_u64.
tbl_sequence_u64 -> rlp(tx).
No description provided by the author
address+incarnation -> code hash.
No description provided by the author
block_num_u64 -> canonical block receipts (non-canonical are not stored).
...
block_num_u64 + blockHash -> sendersList (no serialization format, every 20 bytes is new sender).
tbl_name -> seq_u64.
No description provided by the author
stakes ast_stake -> bytes.
address (un hashed) + incarnation + storage key (un hashed) -> storage value(types.Hash).
blockNum_u64 + address + incarnation_u64 -> plain_storage_key + value.
address + storage_key + shard_id_u64 -> roaring bitmap - list of block where it changed.
hash -> transaction/receipt lookup metadata.