diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/nwc.ts | 3 | ||||
| -rw-r--r-- | lib/payments.ts | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -142,7 +142,7 @@ const handle = (method, params, user, ev) => }, async pay_keysend() { - const { amount, pubkey } = params; + const { amount, pubkey, tlv_records: extratlvs } = params; try { const { payment_hash } = await sendKeysend({ @@ -150,6 +150,7 @@ const handle = (method, params, user, ev) => amount, pubkey, user, + extratlvs, }); for (let i = 0; i < 10; i++) { diff --git a/lib/payments.ts b/lib/payments.ts index 93afc9ea..af838758 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -422,6 +422,7 @@ export const sendKeysend = async ({ fee = undefined, memo = undefined, user, + extratlvs = undefined, }) => { fee = Math.max(parseInt(fee || amount * 0.005), 5); @@ -442,6 +443,7 @@ export const sendKeysend = async ({ amount_msat: amount * 1000, maxfee: fee * 1000, retry_for: 10, + extratlvs, }); if (r.status !== "complete") reverse(p); |
