Skip to main content

header_hash

Function header_hash 

Source
pub fn header_hash(header: &Header) -> [u8; 32]
Expand description

The hash Tenderdash gives a block: the Merkle root of its header’s fields, each in its protobuf encoding. A string, number or hash is wrapped in a one-field message first, so one that is empty or zero is an empty leaf.

The core chain locked height is an empty leaf whatever its value: the state id is what commits to it.