Height of a merkle tree with leaves leaves (a power of two), not counting the root: a single root hash is 0 layers, 2 leaves is 1, etc. From merkle_num_layers.
leaves
merkle_num_layers