AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 59 Bitcoin

blockchain: fix overly eager BIP30 bypass

Public commit record

What the developer wrote

Authored by Boris Nagaev

86/100 · Strong
blockchain: fix overly eager BIP30 bypass

Bitcoin Core PR https://github.com/bitcoin/bitcoin/pull/12204 tightened BIP30
handling: re-enable the check once height 1,983,702 is reached.

This change ports that logic into btcd and adds a regression test.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This update fixes a rule in btcd (a Bitcoin implementation) that was skipping an expensive duplicate-check too early. The change re-enables that duplicate check once the blockchain reaches height 1,983,702, matching a safeguard already added to Bitcoin Core. Without the fix, a carefully crafted block could potentially reuse an old coinbase transaction ID after BIP34 is active, which could cause nodes to disagree on the state of coins. The patch includes a regression test.

Recommended action

Reviewers should confirm the chosen re-enable height matches Bitcoin Core exactly and that the condition params.BIP0034Height < h && h < bip34ReenableBIP30Height correctly re-enables at height 1,983,702 (not 1,983,701). Operators should upgrade btcd nodes to avoid consensus divergence at the re-enable height.

Security signals we found

01

Consensus-rule change ported from upstream Bitcoin Core PR 12204

02

Re-enables BIP30 duplicate coinbase transaction ID check at height 1,983,702

03

Prevents potential duplicate coinbase txid after BIP34 activation

04

Adds regression test for the re-enable behavior

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.