Fix unreproducible bug (at least try) when order does not advance into CHA status.

This commit is contained in:
Reckless_Satoshi 2022-08-18 11:13:20 -07:00
parent 860b3c136b
commit f8e879a3f7
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -1223,6 +1223,7 @@ class Logics:
@classmethod
def is_trade_escrow_locked(cls, order):
if order.trade_escrow.status == LNPayment.Status.LOCKED:
cls.trade_escrow_received(order)
return True
elif LNNode.validate_hold_invoice_locked(order.trade_escrow):
cls.trade_escrow_received(order)