Skip to content

Commit

Permalink
CLN: createInvoice: expiry fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed May 21, 2022
1 parent 877312c commit 9615d25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backends/CLightningREST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class CLightningREST extends LND {
description: data.memo,
label: 'zeus.' + Math.random() * 1000000,
amount: Number(data.value) * 1000,
expiry: data.expiry,
expiry: Math.round(Date.now() / 1000) + Number(data.expiry),
private: true
});
getPayments = () => this.getRequest('/v1/pay/listPays');
Expand Down
2 changes: 1 addition & 1 deletion backends/Spark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class Spark {
description: data.memo,
label: 'zeus.' + Math.random() * 1000000,
msatoshi: Number(data.value) * 1000,
expiry: data.expiry,
expiry: Math.round(Date.now() / 1000) + Number(data.expiry),
exposeprivatechannels: true
});
getPayments = () =>
Expand Down

0 comments on commit 9615d25

Please sign in to comment.