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

wallet: allow anti-fee-sniping in sendall RPC while not relying on RBF default

Public commit record

What the developer wrote

Authored by rkrux

85/100 · Strong
wallet: allow anti-fee-sniping in sendall RPC while not relying on RBF default

In case locktime (and replaceable) not being specified in this RPC request,
the wallet sets the transaction replaceable due to the default value of opt-in
RBF set in the wallet.

This allowed the anti-fee-sniping flow to be executed but in case of
replaceable being set false in the request, anti-fee-sniping flow would be
missed.

This patch fixes it.
✓ 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 is a small fix in Bitcoin Core's 'sendall' wallet RPC command. The bug meant that when a user explicitly set a transaction as non-replaceable, the wallet skipped its normal anti-fee-sniping protection. Anti-fee-sniping is a privacy/defense mechanism that uses the current block height as a transaction 'locktime' to make transactions look more similar and slightly harder to target. The fix changes the input sequence number used in that case so the protection still runs even when RBF is disabled.

Recommended action

Reviewers should confirm that MAX_SEQUENCE_NONFINAL is the intended sequence for non-RBF transactions with locktime in this codebase, and that no other RPC paths have the same pattern. Users running nodes with the sendall RPC should upgrade to include this fix if they rely on anti-fee-sniping behavior.

Security signals we found

01

Privacy/deanonymization signal: anti-fee-sniping is a fingerprinting countermeasure; bypassing it can make transactions more distinguishable

02

Logic bug: RPC parameter 'replaceable=false' inadvertently disabled a separate wallet defense mechanism

03

No consensus or signature validation change

04

No remote/network attack surface introduced

Risk score

Why this scored 31/100

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