From b64109ea8868345a1ebbdf851daddc1f211220fb Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 13 Mar 2025 12:45:56 +0100 Subject: [PATCH] swaps: set locktime to None instead of zero, so that anti fee-sniping works --- electrum/submarine_swaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index cf00bcd7d..f12cdbc62 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -1064,7 +1064,7 @@ class SwapManager(Logger): swap: SwapData, ) -> PartialTransaction: if swap.is_reverse: # successful reverse swap - locktime = 0 + locktime = None # preimage will be set in sign_tx else: # timing out forward swap locktime = swap.locktime