Skip to content

Enforce BIP94 (TestNet4) difficult adjustment logic - #1329

Merged
NicolasDorier merged 3 commits into
MetacoSA:masterfrom
lontivero:fix-testnet4-pow
Aug 27, 2026
Merged

NicolasDorier merged 3 commits into
MetacoSA:masterfrom
lontivero:fix-testnet4-pow

Conversation

@lontivero

@lontivero lontivero commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1328

Tests verify that:
1. Testnet4 uses the first block of the previous period as the difficulty anchor
2. Min-difficulty blocks (from 20-minute rule) don't distort retargeting
3. Real testnet4 block headers at difficulty boundary (28224, 30239, 30240)
Comment thread NBitcoin/Bitcoin.Testnet4.cs Resolved
@NicolasDorier
NicolasDorier merged commit a6abef9 into MetacoSA:master Aug 27, 2026
6 checks passed
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.

TestNet4: header sync fails PoW validation (Node.GetChain throws); Core 31.1 accepts the same chain

2 participants