Add GetNumLeaves function for MerkleTreeBuilder

This commit is contained in:
Andrew Ayer 2017-01-05 15:00:56 -08:00
parent 3673518b30
commit 7c55be7d5c
1 changed files with 4 additions and 0 deletions

View File

@ -184,3 +184,7 @@ func (builder *MerkleTreeBuilder) CalculateRoot() ct.MerkleTreeNode {
} }
return hash return hash
} }
func (builder *MerkleTreeBuilder) GetNumLeaves() uint64 {
return builder.numLeaves
}