numLeafs

fun numLeafs(blocks: Int): Int

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