Issue Details

Number
26526
Title
wallet: don't back-date locktime when replacing/fee bumping
Description
As mentioned in https://github.com/bitcoin/bitcoin/pull/26451#issuecomment-1313934927 example 3: If we do anti-fee sniping, the Bitcoin Core wallet has a 10% chance to back-date the locktime of a transaction to up to 100 blocks. Electrum has similar behavior. https://github.com/bitcoin/bitcoin/blob/48174c0f287b19931ca110670610bd03a03eb914/src/wallet/spend.cpp#L725-L731 When we fee-bump a transaction, it can happen that we have a higher locktime in replaced transaction that in the replacement transaction. This is a clear indication that we are in fact a Bitcoin Core or Electrum wallet doing the replacement. I think this is something we should try to avoid. related: https://github.com/bitcoin/bitcoin/issues/26527 electrum issue: https://github.com/spesmilo/electrum/issues/8073
URL
https://github.com/bitcoin/bitcoin/issue/26526
Closed by
Back to List