fix expiration and timestamp
This commit is contained in:
parent
71a03fb5d0
commit
da693b8f81
1 changed files with 3 additions and 3 deletions
6
tasks.py
6
tasks.py
|
|
@ -233,9 +233,9 @@ async def _on_lookup_invoice(sp: NWCServiceProvider, pubkey: str, payload: Dict)
|
||||||
"payment_hash": payment.payment_hash,
|
"payment_hash": payment.payment_hash,
|
||||||
"amount": abs(payment.msat),
|
"amount": abs(payment.msat),
|
||||||
"fees_paid": abs(payment.fee),
|
"fees_paid": abs(payment.fee),
|
||||||
"created_at": payment.time,
|
"created_at": timestamp,
|
||||||
"expires_at": payment.time+payment.expiry,
|
"expires_at": payment.expiry if payment.expiry else timestamp+3600,
|
||||||
"settled_at": payment.time if is_settled else None,
|
"settled_at": timestamp if is_settled else None,
|
||||||
"metadata": {}
|
"metadata": {}
|
||||||
}
|
}
|
||||||
if invoice_data.description_hash:
|
if invoice_data.description_hash:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue