mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
submarine_swaps: increase min locktime delta for reverse swap to 60
10 blocks is not enough to get a tx confirmed without worrying...
This commit is contained in:
parent
c2ffc6ca3a
commit
fcbc1c9a45
1 changed files with 2 additions and 2 deletions
|
@ -308,8 +308,8 @@ class SwapManager(Logger):
|
||||||
raise Exception(f"rswap check failed: onchain_amount is less than what we expected: "
|
raise Exception(f"rswap check failed: onchain_amount is less than what we expected: "
|
||||||
f"{onchain_amount} < {expected_amount}")
|
f"{onchain_amount} < {expected_amount}")
|
||||||
# verify that we will have enough time to get our tx confirmed
|
# verify that we will have enough time to get our tx confirmed
|
||||||
if locktime - self.network.get_local_height() <= 10:
|
if locktime - self.network.get_local_height() <= 60:
|
||||||
raise Exception("fswap check failed: locktime too close")
|
raise Exception("rswap check failed: locktime too close")
|
||||||
# verify invoice preimage_hash
|
# verify invoice preimage_hash
|
||||||
lnaddr = self.lnworker._check_invoice(invoice)
|
lnaddr = self.lnworker._check_invoice(invoice)
|
||||||
invoice_amount = lnaddr.get_amount_sat()
|
invoice_amount = lnaddr.get_amount_sat()
|
||||||
|
|
Loading…
Add table
Reference in a new issue