diff --git a/merkletree/collapsed_tree.go b/merkletree/collapsed_tree.go index 19a5a70..7523481 100644 --- a/merkletree/collapsed_tree.go +++ b/merkletree/collapsed_tree.go @@ -87,6 +87,10 @@ func (tree *CollapsedTree) CalculateRoot() Hash { return hash } +func (tree *CollapsedTree) Nodes() []Hash { + return tree.nodes +} + func (tree *CollapsedTree) Size() uint64 { return tree.size }