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

txgraph: use fallback order when linearizing (feature)

Public commit record

What the developer wrote

Authored by Pieter Wuille

73/100 · Adequate
txgraph: use fallback order when linearizing (feature)

Add glue to make TxGraph use the fallback order provided to it, in the
fallback comparator it provides to the cluster linearization code.

The order of chunks within a cluster becomes:
1. Topology (chunks after their dependencies)
2. Feerate (high to low)
3. Weight (small to large)
4. Max-txid (chunk with lowest maximum-txid first)

The order of transactions within a chunk becomes:
1. Topology (parents before children)
2. Individual transaction feerate (high to low)
3. Weight (small to large)
4. Txid (low to high txid)

This makes optimal cluster linearization, both the order of chunks
within a chunk, and the order of transactions within those chunks,
completely deterministic.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change makes Bitcoin Core's transaction-graph cluster linearization use a deterministic fallback ordering when the optimal algorithm ties or cannot fully decide. Previously the fallback relied on internal index numbers, which could leak information about how transactions are stored internally. The new fallback uses actual transaction properties (feerate, weight, txid) and an externally supplied order, making behavior predictable and less dependent on internal memory layout. It is a hardening/feature improvement rather than a fix for an active exploit.

Recommended action

No urgent action required. Treat as normal code review/hardening. Verify that m_fallback_order is itself deterministic and does not introduce new sources of non-determinism or side channels in consensus-critical paths.

Security signals we found

01

Removal of internal DepGraphIndex-based fallback ordering, reducing potential information leakage about internal cluster indexes

02

Introduction of deterministic, externally-defined fallback ordering for cluster linearization

03

Comment explicitly noted the old fallback could leak information about DepGraphIndexes

Risk score

Why this scored 18/100

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