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

Use a tolerance when estimating remote fees

Public commit record

What the developer wrote

Authored by Jeffrey Czyz

68/100 · Adequate
Use a tolerance when estimating remote fees

The interactive-tx construction protocol uses an agreed upon fee rate.
Since the bitcoind coin selection algorithm may underpay fees when no
change output is needed, providing a tolerance when checking if the
remote's fee contribution could avoid some unexpected failures. This
commit introduces a 95% tolerance similar to Eclair.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change relaxes a fee-checking rule during Bitcoin Lightning channel transactions. When two parties jointly build a transaction, the code now accepts a remote party's fee contribution that is up to 5% lower than the agreed rate, matching how another major implementation (Eclair) behaves. This avoids false failures caused by real-world coin-selection quirks, but it also means the local node may accept slightly less fee than strictly required.

Recommended action

Treat as a minor protocol-hardening/compatibility fix rather than an emergency security patch. Review whether a 5% tolerance is sufficient for all coin-selection edge cases and ensure the tolerance is documented in protocol specs. Consider whether an adversarial peer could exploit the relaxed check to systematically underpay fees across many transactions.

Security signals we found

01

Protocol fee validation relaxed by 5%

02

Change aligns with Eclair behavior, reducing cross-implementation incompatibility

03

Potential for local node to accept lower-than-agreed fee contribution from remote peer

04

No input validation, serialization, or memory-safety changes observed

Risk score

Why this scored 33/100

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