payment_identifier: don't assume bip70_data exists in has_expired()
This commit is contained in:
committed by
SomberNight
parent
8bd4909162
commit
7d707bb5c9
@@ -662,7 +662,7 @@ class PaymentIdentifier(Logger):
|
||||
return None
|
||||
|
||||
def has_expired(self):
|
||||
if self.bip70:
|
||||
if self.bip70 and self.bip70_data:
|
||||
return self.bip70_data.has_expired()
|
||||
elif self.bolt11:
|
||||
return self.bolt11.has_expired()
|
||||
|
||||
Reference in New Issue
Block a user