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

cn_turtle_hash: Use the light flag in portable implementation #1126

Merged
merged 1 commit into from Apr 24, 2020

Conversation

Doy-lee
Copy link
Collaborator

@Doy-lee Doy-lee commented Apr 17, 2020

The portable implementation doesn't use the light parameter causing
inconsistent results. Desk checking against the ARM64 implementation
that does NOT used the +crypto extensions, meaning it is emulated in
software- That implementation is essentially the same as the portable
implementation, some minor differences in the pre-amble but correctly
uses the light flag.

Adapting that over allows us to sync past block 321280, which previously
emitted an "unexpected difficulty" error and has also been tested to sync
all the blocks in hardfork 11 which use cn turtle successfully.

This code path was never excercised due to the '-maes' flag being forced
on via CMake. That was removed in this commit to make it specifiable by
the user.

17be0ed

@Doy-lee Doy-lee force-pushed the CNTurtleHashSoftwareFix branch 3 times, most recently from be232ce to ee2434f Compare April 20, 2020 23:35
@Doy-lee Doy-lee changed the base branch from master to dev April 21, 2020 00:31
inconsistent results. I desk checked against the ARM64 implementation
that does NOT used the +crypto extensions, meaning it is emulated in
software- That implementation is essentially the same as the portable
implementation, some minor differences in the pre-amble but correctly
uses the light flag.

Adapting that over allows us to sync past block 321280, which previously
emitted an "unexpected difficulty" error.

This code path was never excercised due to the '-maes' flag being forced
on via CMake. That was removed in this commit to make it specifiable by
the user.

oxen-io@17be0ed
@Doy-lee Doy-lee merged commit 5d6be45 into oxen-io:dev Apr 24, 2020
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.

None yet

2 participants