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

Mempool: Do not enforce TRUC checks on reorg

Public commit record

What the developer wrote

Authored by Greg Sanders

68/100 · Adequate
Mempool: Do not enforce TRUC checks on reorg

Not enforcing TRUC topology on reorg was the intended
behavior, but the appropriate bypass argument was not
checked.

This mistake means we could potentially invalidate a long
chain of perfectly incentive-compatible transactions that
were made historically, including subsequent non-TRUC
transactions, all of which may have been very high feerate.

Lastly, it wastes CPU cycles doing topology checks since
this behavior cannot actually enforce the topology in
general for the reorg setting.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in Bitcoin Core's transaction memory pool (mempool) handling during blockchain reorganizations (reorgs). A reorg happens when the network briefly has two competing versions of recent history and one wins. The bug caused the mempool to wrongly enforce new TRUC topology rules on old transactions being restored after a reorg. That could reject a chain of historically valid, high-fee transactions and waste CPU checking rules that were never meant to apply in that situation. The fix adds a bypass flag so those checks are skipped during reorg recovery, matching the original design intent.

Recommended action

Apply the patch. Nodes should upgrade to a version containing this commit to avoid the reorg-time mempool policy bug. Operators relying on mempool consistency during reorgs should monitor for the fix in the next maintenance release.

Security signals we found

01

Denial-of-service vector: unnecessary CPU spent on topology checks during reorg

02

Transaction censorship / mempool exclusion of historically valid high-feerate transaction chains

03

Policy-rule misapplication outside intended context (reorg recovery)

04

Fix matches stated original intent, indicating a logic-gap bug

Risk score

Why this scored 44/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 7/15
Affected reach 6/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.