pub fn check_canopy_no_nodes_to_right_of_index(
canopy_bytes: &[u8],
max_depth: u32,
index: u32,
) -> Result<()>
Expand description
Checks the canopy doesn’t have any nodes to the right of the provided index in the full tree. This is done by iterating through the canopy nodes to the right of the provided index and finding the top-most node that has the node as its left child. The node should be empty. The iteration contains following the previous checked node on the same level until the last node on the level is reached.