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

Rework truc_policy to use descendants, not children

Public commit record

What the developer wrote

Authored by Suhas Daftuar

50/100 · Thin
Rework truc_policy to use descendants, not children
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes how Bitcoin Core counts the descendants of a special transaction type (TRUC) in the memory pool. Previously it looked only at direct children, which could miss deeper descendants introduced by blockchain reorganizations. The change makes the limit enforcement more accurate and adds a lock to prevent race conditions while checking the pool. It is a correctness and robustness improvement rather than a clear, exploitable vulnerability.

Recommended action

Review the change as a mempool-policy correctness fix. Validate that CalculateDescendants includes all expected entries and that the lock scope is sufficient. Consider whether any test coverage exists for reorg-induced multi-level TRUC descendant chains. No urgent security response is indicated by the diff alone.

Security signals we found

01

mempool policy enforcement logic changed

02

descendant-count limit calculation changed from children to full descendant set

03

new mempool lock (pool.cs) added around policy check

04

reorg-related edge case explicitly mentioned in comments

05

sibling eviction decision depends on corrected descendant/ancestor counts

Risk score

Why this scored 42/100

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