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

Haven 4.0.3 - fix difficulty drift and removal of stuck conversions from the pool after 1 hour #70

Conversation

Tay8NWWFKpz9JT4NXU0w
Copy link
Collaborator

There is a difference in the precision of difficulty calculation between Linux x86_64 and Windows / Linux ARM8. It seems to relate to floating point arithmetic deviations, most likely coming from the additional -m64 flag (rounding to 53 bits) passed in linux.mk in the make depend configuration. Changing the type to long double seems to fix the issue and produce consistent results between Linux x86_64 and other Windows / Linux ARM8.

Additionally, add a 1 hour time limit of conversions remaining the transaction pool, as a temporary measure to help the current stuck transactions problem.

There is a difference in the precision of difficulty calculation between Linux x86_64 and Windows / Linux ARM8.
It seems to relate to floating point arithmetic deviations, most likely coming from the additional -m64 flag (rounding to 53 bits) passed in linux.mk in the make depend configuration.
Changing the type to long double seems to fix the issue and produce consistent results between Linux x86_64 and other Windows / Linux ARM8.
@Tay8NWWFKpz9JT4NXU0w
Copy link
Collaborator Author

changes will be included in Haven 4.1

@Tay8NWWFKpz9JT4NXU0w Tay8NWWFKpz9JT4NXU0w deleted the Haven-4.0.3 branch August 26, 2024 18:31
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.

1 participant