Skip to content

Don't back-date locktime during RBF and when spending unconfirmed UTXOs #8073

@0xB10C

Description

@0xB10C

The Electrum wallet, similar to the Bitcoin Core wallet, back-dates the locktime of 10% of it's transactions to up to 100 blocks in the past.

electrum/electrum/wallet.py

Lines 222 to 225 in b357391

# sometimes pick locktime a bit further back, to help privacy
# of setups that need more time (offline/multisig/coinjoin/...)
if random.randint(0, 9) == 0:
locktime = max(0, locktime - random.randint(0, 99))

I've just opened these two issues for the Bitcoin Core wallet. I think they are relevant here too.

If these changes are implemented in Bitcoin Core, it might be useful to adapt the behavior here too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-wallet 👛related to wallet.py, or maybe address_synchronizer.py/coinchooser.py

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions