aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-13 12:36:13 -0800
committerAdam Soltys <[email protected]>2024-12-13 12:36:13 -0800
commite88dc11d821fc363dd7305e3ebca34db1927988e (patch)
treed8bb94c0afcc796551c4c9cb6f3f44ac32d506de /lib/payments.ts
parent80f753e981e5e32087f7b18345459c52c4ef5a25 (diff)
downloadcoinos-server-e88dc11d821fc363dd7305e3ebca34db1927988e.tar.gz
coinos-server-e88dc11d821fc363dd7305e3ebca34db1927988e.zip
keysend accept extratlvs
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts2
1 files changed, 2 insertions, 0 deletions
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);