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

index: Check BIP30 blocks when rewinding Coinstatsindex

Public commit record

What the developer wrote

Authored by Fabian Jahr

85/100 · Strong
index: Check BIP30 blocks when rewinding Coinstatsindex

This is practically irrelevant due to the unlikeliness of a re-org
reaching so deep that it would drop the BIP30 blocks from the chain
(91842 and 91880). However this serves as documentation and ensures that
the functions RevertBlock and CustomAppend are consistent.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit adds a safety check inside Bitcoin Core's CoinStatsIndex when it has to 'rewind' or undo a block during a deep blockchain reorganization. Specifically, it skips undoing the coinbase transactions of two very old special blocks (heights 91842 and 91880) whose outputs are permanently unspendable under a rule called BIP30. The change is mostly for internal consistency and documentation, because a reorganization deep enough to affect those blocks is practically impossible on today's network.

Recommended action

No urgent action required. Treat as a minor correctness/consistency improvement. Node operators do not need to upgrade solely for this change. Reviewers may verify that the IsBIP30Unspendable helper is used consistently across CustomAppend and RevertBlock.

Security signals we found

01

Defensive consistency fix in index rewind logic

02

BIP30 unspendable block handling

03

Deep reorg edge case only; commit message downplays practical likelihood

Risk score

Why this scored 18/100

Our methodology →
Potential impact 3/30
Exploitability 1/25
Stealth signal 2/15
Affected reach 2/15
Confidence 7/10
Evidence quality 3/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.