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 stale blockchain #1

Merged
merged 4 commits into from
Mar 25, 2021
Merged

Conversation

superdaddynz
Copy link
Contributor

As I proposed in the bitcointalk, this is more tested version to halve difficulty if the blockchain is stuck more than 50 minutes.

With high minging difficulty attack, the chain is stale for hours.
To prevent halve difficulty in every 50 minutes in stale chain.
Also make timespan to use 2 blocks correctly.
Make sure getblocktemplate to use new diff when it's halved
on stale block.
Also correct arithematic error to determine halving diff.
@Bitcoin3-source Bitcoin3-source merged commit 4c623be into Bitcoin3-source:main Mar 25, 2021
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