1
0

lnworker.get_invoice_status: test if invoice is expired

This commit is contained in:
ThomasV
2019-07-30 13:28:01 +02:00
parent cac1e87286
commit f9a2e7eeb4
2 changed files with 10 additions and 2 deletions

View File

@@ -272,7 +272,9 @@ class LnAddr(object):
def get_expiry(self):
return int(self.get_tag('x') or '3600')
def is_expired(self):
now = time.time()
return now > self.get_expiry() + self.date
def lndecode(a, verbose=False, expected_hrp=None):
if expected_hrp is None: