-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accumulator/pollard: Pollard multiblockproof fix & utility functions (#…
…338) * accumulator/pollard: Bug fixes for pollard add. The siblings of the added leaves will now also be set to be remembered. This solves a bug where the sibling wasn't present when the proof ingest doesn't happen before every single modify. This is now tested with the test function TestPollardNoSiblingFound. When a leaf hash to be remembered isn't found, the program paniced on a nil pollard node. There is now a check to make sure the node is not nil before trying to do operations on it. * accumulator/pollardutil: Add pollard utility methods. PrintRemembers(), PruneAll(), and NumLeaves() methods are added to the pollard struct.
- Loading branch information
1 parent
df7b3aa
commit 1ff40de
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters