Module block

Source
Expand description

Block and transaction serialization formats for finalized data.

§Correctness

crate::constants::state_database_format_version_in_code() must be incremented each time the database format (column, serialization, etc) changes.

Structs§

TransactionIndex
A transaction’s index in its block.
TransactionLocation
A transaction’s location in the chain, by block height and transaction index.

Constants§

HEIGHT_DISK_BYTES
Heights are stored as 3 bytes on disk.
MAX_ON_DISK_HEIGHT
The maximum value of an on-disk serialized Height.
TRANSACTION_LOCATION_DISK_BYTES
TransactionLocations are stored as a 3 byte height and a 2 byte transaction index.
TX_INDEX_DISK_BYTES
TransactionIndexes are stored as 2 bytes on disk.