SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
2 additions and
2 deletions
-
electrum/wallet.py
-
electrum/wallet_db.py
|
|
@ -1641,7 +1641,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC): |
|
|
|
uri = create_bip21_uri(addr, amount, message, extra_query_params=extra_query_params) |
|
|
|
return str(uri) |
|
|
|
|
|
|
|
def check_expired_status(self, r, status): |
|
|
|
def check_expired_status(self, r: Invoice, status): |
|
|
|
if r.is_lightning() and r.exp == 0: |
|
|
|
status = PR_EXPIRED # for BOLT-11 invoices, exp==0 means 0 seconds |
|
|
|
if status == PR_UNPAID and r.exp > 0 and r.time + r.exp < time.time(): |
|
|
|
|
|
@ -619,7 +619,7 @@ class WalletDB(JsonDB): |
|
|
|
'type': _type, |
|
|
|
'message': r.get('message') or r.get('memo', ''), |
|
|
|
'amount': r.get('amount'), |
|
|
|
'exp': r.get('exp', 0), |
|
|
|
'exp': r.get('exp') or 0, |
|
|
|
'time': r.get('time', 0), |
|
|
|
} |
|
|
|
if _type == PR_TYPE_ONCHAIN: |
|
|
|