1
0

Set status of onchain invoices to PR_INFLIGHT while tx is being broadcast

This commit is contained in:
ThomasV
2023-04-04 16:55:06 +02:00
parent cf3613b7d5
commit 159646fe54
5 changed files with 42 additions and 14 deletions

View File

@@ -243,6 +243,7 @@ class BaseInvoice(StoredObject):
class Invoice(BaseInvoice):
lightning_invoice = attr.ib(type=str, kw_only=True) # type: Optional[str]
__lnaddr = None
_is_broadcasting = False
def is_lightning(self):
return self.lightning_invoice is not None