You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the underlying forest didn't change. So the getRoots() function is grabbing non-roots. This actually wouldn't happen with Pollard because you keep updating the roots and don't calculate it on the fly.
Should this result in an error? Not sure if this is the right behavior for getRoots() when non-roots are returned. Or maybe use some other method to keep track of roots so this doesn't happen.
The text was updated successfully, but these errors were encountered:
It's because the
getRoots()
function is based off offorest.numLeaves
andforest.rows
and those things correctly get updated during an undo.utreexo/accumulator/forest.go
Lines 679 to 692 in 37699d1
However, the underlying forest didn't change. So the
getRoots()
function is grabbing non-roots. This actually wouldn't happen withPollard
because you keep updating the roots and don't calculate it on the fly.Try:
Originally posted by @kcalvinalvin in #330 (comment)
Should this result in an error? Not sure if this is the right behavior for getRoots() when non-roots are returned. Or maybe use some other method to keep track of roots so this doesn't happen.
The text was updated successfully, but these errors were encountered: