mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
follow-up a4b24df4bb
This commit is contained in:
parent
073a09f926
commit
c3504cec94
1 changed files with 2 additions and 2 deletions
|
@ -980,13 +980,13 @@ class LNWallet(LNWorker):
|
|||
invoice, direction, is_paid = self.invoices[key]
|
||||
status = self.get_invoice_status(key)
|
||||
lnaddr = lndecode(invoice, expected_hrp=constants.net.SEGWIT_HRP)
|
||||
amount_sat = lnaddr.amount*COIN if lnaddr.amount else None
|
||||
amount_sat = int(lnaddr.amount*COIN) if lnaddr.amount else None
|
||||
description = lnaddr.get_description()
|
||||
timestamp = lnaddr.date
|
||||
return {
|
||||
'type': PR_TYPE_LN,
|
||||
'status': status,
|
||||
'amount': int(amount_sat),
|
||||
'amount': amount_sat,
|
||||
'time': timestamp,
|
||||
'exp': lnaddr.get_expiry(),
|
||||
'message': description,
|
||||
|
|
Loading…
Add table
Reference in a new issue