merkletree: add method for getting collapsed tree nodes

This commit is contained in:
Andrew Ayer 2024-05-25 11:19:55 -04:00
parent 7f17992c9c
commit cc98a06bcb
1 changed files with 4 additions and 0 deletions

View File

@ -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
}