Function sparse_merkle_tree::merge::merge
source · pub fn merge<H: Hasher + Default>(
height: u8,
node_key: &H256,
lhs: &MergeValue,
rhs: &MergeValue
) -> MergeValue
Expand description
Merge two hash with node information this function optimized for ZERO_HASH if lhs and rhs both are ZERO_HASH return ZERO_HASH, otherwise hash all info.