Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leading zeroes bugs #3763

Merged
merged 2 commits into from Jul 20, 2023
Merged

Conversation

tromp
Copy link
Contributor

@tromp tromp commented Jul 15, 2023

Fixes #3762 in suggested way.

No consensus change; makes PoW verification work correctly on select 32-bit platforms.
No new functionality / unit tests.
No impact beyond 32-bit platform bugfix.
Tested with cargo test -all and mainnet sync catching up a few weeks.
No change to documentation.

@ardocrat
Copy link
Contributor

Thank you very much, now it's syncing without problems at arm-v7a arch.

@yeastplume
Copy link
Member

I don't have a 32 bit install of anything to test against, but it looks straightforward and if @ardocrat has tested it looks good to me 👍. It feels like trying to bit shift against a usize should trigger some kind of Rust warning, it's an easy thing to overlook.

@yeastplume yeastplume merged commit 399fb19 into mimblewimble:master Jul 20, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug in computing proof size rounded up to next higher 2-power
3 participants