Skip to content

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

Description

@bc1cindy

Cake sets nLockTime = 0 on all BTC txs; Core/Electrum use tip + ~10% backdate, so no anti-fee-sniping, and payjoins diverge from other impls

Locktime is never set, defaulting to 0 in two paths, a wallet-wide fix must touch both:

proposal: replicate Core (tip; 10% max(0, tip-rand(0..99)); 0 if unsynced) via a shared helper, passed into both builders.

ref: payjoin/rust-payjoin#1676

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions