1
0

follow-up previous commit (indentation error)

This commit is contained in:
ThomasV
2024-10-31 10:21:05 +01:00
parent f41a8105a1
commit 3ee2d6a01d
2 changed files with 2 additions and 3 deletions

View File

@@ -2335,8 +2335,7 @@ class LNWallet(LNWorker):
def is_accepted_mpp(self, payment_hash: bytes) -> bool:
payment_key = self._get_payment_key(payment_hash)
status = self.received_mpp_htlcs.get(payment_key.hex())
assert status is not None
return status.resolution == RecvMPPResolution.ACCEPTED
return status and status.resolution == RecvMPPResolution.ACCEPTED
def get_first_timestamp_of_mpp(self, payment_key: bytes) -> int:
mpp_status = self.received_mpp_htlcs.get(payment_key.hex())

View File

@@ -355,7 +355,7 @@ class SwapManager(Logger):
if remaining_time > 0:
# too early for refund
return
if swap.preimage:
if swap.preimage:
# we have been paid. do not try to get refund.
return
else: