Skip to content

Fix leading zeroes bugs#3763

Merged
yeastplume merged 2 commits into
mimblewimble:masterfrom
tromp:fix_leading_zeroes_bugs
Jul 20, 2023
Merged

Fix leading zeroes bugs#3763
yeastplume merged 2 commits into
mimblewimble:masterfrom
tromp:fix_leading_zeroes_bugs

Conversation

@tromp
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Comment thread config/src/config.rs
@yeastplume
Copy link
Copy Markdown
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
bayk added a commit to mwcproject/mwc-node that referenced this pull request Jun 23, 2024
* remove two unneeded mut's
* ensure correct size for leading_zeros()
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