forked from rfree2/bitmonero
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix-test for the tree-hash bug (abort on bug)
- Loading branch information
1 parent
1d6372c
commit b417abf
Showing
1 changed file
with
58 additions
and
6 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
b417abf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use this one, just for research real PR will follow
b417abf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit is the first commit as a quick abort and research, CN released information half hour later.
Our full nice solution with proper asserts and documentation on the problem, is here:
https://github.com/rfree2monero/bitmonero/tree/pr-fix-treehash2
b417abf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap this version indeed was not good, it does first 2 << -1 operation, the calculation result is replaced with correct one always, but still no program should do that.
As I said, the real approved fix I prepared in the other branch, and only after review it goes into the Monero official client.