max_ledger_db_key_length

Function max_ledger_db_key_length 

Source
pub const fn max_ledger_db_key_length(max_datastore_key_length: u8) -> u64
Expand description

Maximum length of a serialized ledger key as stored in the state DB: LEDGER_PREFIX, key version, address (type, version, hash), DATASTORE_IDENT and a datastore key of at most max_datastore_key_length bytes.

This is larger than max_datastore_key_length itself, so anything bounding raw state DB keys (e.g. bootstrap streaming) must use this instead.