Skip to main content

make_block_reserved_fields

Function make_block_reserved_fields 

Source
pub fn make_block_reserved_fields(
    prev_hash: [u8; 32],
    height: u64,
    timestamp_ms: u64,
    payload_canonical: &[u8],
) -> (Vec<(String, Value)>, [u8; 32])
Expand description

Build the reserved-column key/value pairs for a new block. Caller appends these to the row’s fields AFTER stripping any user-supplied reserved columns. The returned hash is also returned so callers can advance the tip without recomputing.