Given a number of blocks, the number of leaves the tree needs, rounded up to the next power of two. From merkle_num_leafs.
blocks
merkle_num_leafs