merkletree: add method for getting collapsed tree nodes
This commit is contained in:
parent
7f17992c9c
commit
cc98a06bcb
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue