Skip to content

Set anti-fee-sniping locktime (exact-tip) on bitcoin sends#3385

Open
bc1cindy wants to merge 1 commit into
cake-tech:devfrom
bc1cindy:locktime-anti-fee-sniping
Open

Set anti-fee-sniping locktime (exact-tip) on bitcoin sends#3385
bc1cindy wants to merge 1 commit into
cake-tech:devfrom
bc1cindy:locktime-anti-fee-sniping

Conversation

@bc1cindy

@bc1cindy bc1cindy commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Cake sets nLockTime = 0 on all BTC txs — no anti-fee-sniping, and a unique fingerprint (payjoins especially).

Set it to the current tip (exact-tip) via a shared helper, wired into both locktime-defaulting paths: BitcoinTransactionBuilder (normal sends) and PSBTTransactionBuild/PsbtV2 via setGlobalFallbackLocktime (payjoin originalPsbt). 0 when unsynced.

Converges with the exact-tip cluster (payjoin-cli, ldk-node, Bull Bitcoin) and Core's default for externally-constructed txs, and takes Cake off the 0 fingerprint. Skips the ~10% backdate Core/Electrum apply for delayed-broadcast privacy — a contested, declining signal that doesn't apply in payjoin.

depends on cake-tech/bitcoin_base#13 · closes #3361

Current tip (exact-tip) via shared helper, wired into normal sends (path A) and payjoin/PSBT (path B). 0 when unsynced. Converges with the exact-tip cluster (payjoin-cli, ldk-node, Bull Bitcoin) and skips the ~10% backdate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bitcoin sends use nLockTime = 0 (anti-fee-sniping + payjoin fingerprint)

1 participant