tsubmarine_swaps: increase min locktime delta for reverse swap to 60 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fcbc1c9a459d79d54d6c102912f56b922d58fb19 DIR parent c2ffc6ca3a3a8d693964908b1ec88fb7e3f83229 HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 18 Jun 2020 22:25:38 +0200 submarine_swaps: increase min locktime delta for reverse swap to 60 10 blocks is not enough to get a tx confirmed without worrying... Diffstat: M electrum/submarine_swaps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py t@@ -308,8 +308,8 @@ class SwapManager(Logger): raise Exception(f"rswap check failed: onchain_amount is less than what we expected: " f"{onchain_amount} < {expected_amount}") # verify that we will have enough time to get our tx confirmed - if locktime - self.network.get_local_height() <= 10: - raise Exception("fswap check failed: locktime too close") + if locktime - self.network.get_local_height() <= 60: + raise Exception("rswap check failed: locktime too close") # verify invoice preimage_hash lnaddr = self.lnworker._check_invoice(invoice) invoice_amount = lnaddr.get_amount_sat()