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

Make difficulty 128 bit #199

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Make difficulty 128 bit #199

wants to merge 4 commits into from

Conversation

aivve
Copy link
Collaborator

@aivve aivve commented Aug 5, 2022

Based on Monero and Boolberry impl.

Not sure in near future we will need this but why not?

Requires testing, so far SYNCHRONIZED OK with full POW validation

@aivve
Copy link
Collaborator Author

aivve commented Aug 6, 2022

It will look like this when the difficulty hits uint64_t numeric limit

"cumulative_difficulty": {
  "hi":1,
  "lo":9899
},
"difficulty":100000

@aivve
Copy link
Collaborator Author

aivve commented Aug 6, 2022

Or in plain text cumulative_difficulty: 18446744073709561515 which is larger than 18446744073709551615

@aivve
Copy link
Collaborator Author

aivve commented Aug 6, 2022

And yes, there's no migration tool, this requires syncing from scratch from nodes on prev. version.

…hat can't handle such a larger numbers in /getinfo RPC response
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

1 participant