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:
|
def is_accepted_mpp(self, payment_hash: bytes) -> bool:
|
||||||
payment_key = self._get_payment_key(payment_hash)
|
payment_key = self._get_payment_key(payment_hash)
|
||||||
status = self.received_mpp_htlcs.get(payment_key.hex())
|
status = self.received_mpp_htlcs.get(payment_key.hex())
|
||||||
assert status is not None
|
return status and status.resolution == RecvMPPResolution.ACCEPTED
|
||||||
return status.resolution == RecvMPPResolution.ACCEPTED
|
|
||||||
|
|
||||||
def get_first_timestamp_of_mpp(self, payment_key: bytes) -> int:
|
def get_first_timestamp_of_mpp(self, payment_key: bytes) -> int:
|
||||||
mpp_status = self.received_mpp_htlcs.get(payment_key.hex())
|
mpp_status = self.received_mpp_htlcs.get(payment_key.hex())
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ class SwapManager(Logger):
|
|||||||
if remaining_time > 0:
|
if remaining_time > 0:
|
||||||
# too early for refund
|
# too early for refund
|
||||||
return
|
return
|
||||||
if swap.preimage:
|
if swap.preimage:
|
||||||
# we have been paid. do not try to get refund.
|
# we have been paid. do not try to get refund.
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user