Function tallytree::navigate::tree_depth[][src]

pub fn tree_depth(node: &NodeRef) -> usize
Expand description

Find the depth of the merkle tally tree at this node, including leaf wrapper nodes.

For example, a tree with 3 nodes will have a depth of 5.

           A
         /  \
        B    C
       / \   | \
      D   E  F  Ø
      |   |  |
      V1  V2 V3