From cc98a06bcb5daf2f0e0adfb131c09bcb6e2ba1c3 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sat, 25 May 2024 11:19:55 -0400 Subject: [PATCH] merkletree: add method for getting collapsed tree nodes --- merkletree/collapsed_tree.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }