Merge pull request #10211 from f321x/swap_cleanup_check
swaps: only set swap redeemed if preimage is available
This commit is contained in:
@@ -464,7 +464,7 @@ class SwapManager(Logger):
|
||||
if spent_height in [TX_HEIGHT_LOCAL, TX_HEIGHT_FUTURE]:
|
||||
spent_height = None
|
||||
if spent_height is not None:
|
||||
if spent_height > 0:
|
||||
if spent_height > 0 and swap.preimage:
|
||||
if current_height - spent_height > REDEEM_AFTER_DOUBLE_SPENT_DELAY:
|
||||
self.logger.info(f'stop watching swap {swap.lockup_address}')
|
||||
swap.is_redeemed = True
|
||||
|
||||
Reference in New Issue
Block a user