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§
- Transaction
Index - A transaction’s index in its block.
- Transaction
Location - A transaction’s location in the chain, by block height and transaction index.
Constants§
- HEIGHT_
DISK_ BYTES Height
s are stored as 3 bytes on disk.- MAX_
ON_ DISK_ HEIGHT - The maximum value of an on-disk serialized
Height
. - TRANSACTION_
LOCATION_ DISK_ BYTES TransactionLocation
s are stored as a 3 byte height and a 2 byte transaction index.- TX_
INDEX_ DISK_ BYTES TransactionIndex
es are stored as 2 bytes on disk.