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

@bc1cindy
bc1cindy force-pushed the locktime-anti-fee-sniping branch from 60dfa11 to 7bdac5f Compare July 15, 2026 22:55
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.
@bc1cindy
bc1cindy force-pushed the locktime-anti-fee-sniping branch from 7bdac5f to 89a65a3 Compare July 18, 2026 20:35
@bc1cindy

Copy link
Copy Markdown
Contributor Author

CI fails because it depends on cake-tech/bitcoin_base#13

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