From 7c55be7d5c3f85268fb28b7e88b0094b473977ac Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Thu, 5 Jan 2017 15:00:56 -0800 Subject: [PATCH] Add GetNumLeaves function for MerkleTreeBuilder --- auditing.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auditing.go b/auditing.go index 69158bc..a5768ec 100644 --- a/auditing.go +++ b/auditing.go @@ -184,3 +184,7 @@ func (builder *MerkleTreeBuilder) CalculateRoot() ct.MerkleTreeNode { } return hash } + +func (builder *MerkleTreeBuilder) GetNumLeaves() uint64 { + return builder.numLeaves +}