follow-up previous commit (indentation error)
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user