Add GetNumLeaves function for MerkleTreeBuilder
This commit is contained in:
parent
3673518b30
commit
7c55be7d5c
|
@ -184,3 +184,7 @@ func (builder *MerkleTreeBuilder) CalculateRoot() ct.MerkleTreeNode {
|
|||
}
|
||||
return hash
|
||||
}
|
||||
|
||||
func (builder *MerkleTreeBuilder) GetNumLeaves() uint64 {
|
||||
return builder.numLeaves
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue