diff options
| author | Adam Soltys <[email protected]> | 2024-12-02 22:06:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-02 22:06:01 -0800 |
| commit | 7fc51785cd190f51f5ef7cfbcb262a238b68e175 (patch) | |
| tree | 4717d95e85af94afe63678f73c8c56ec75dd0978 /lib/nwc.ts | |
| parent | a25cd41e1c38b91465ea95e4bcba66c4a089091e (diff) | |
| download | coinos-server-7fc51785cd190f51f5ef7cfbcb262a238b68e175.tar.gz coinos-server-7fc51785cd190f51f5ef7cfbcb262a238b68e175.zip | |
keysend
Diffstat (limited to 'lib/nwc.ts')
| -rw-r--r-- | lib/nwc.ts | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -143,15 +143,14 @@ const handle = (method, params, user) => async pay_keysend() { const { amount, pubkey } = params; - await sendKeysend({ + const { payment_hash } = await sendKeysend({ amount, pubkey, - fee: Math.max(5, Math.round(amount * 0.005)), user, }); for (let i = 0; i < 10; i++) { - const { pays } = await ln.listpays(pr); + const { pays } = await ln.listpays({ payment_hash }); const p = pays.find((p) => p.status === "complete"); if (p) { const { preimage } = p; |
