aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-18 15:44:24 -0400
committerAdam Soltys <[email protected]>2021-08-18 15:44:27 -0400
commitd4bdd2e4bdfaeed38fb6007b337b32d494b3997c (patch)
treed4d83611cd48fff885da006c92fcc3b924e08727 /lib
parent76a16fcb4de1ccb351fbc45e85ac174fc0718c25 (diff)
downloadcoinos-server-d4bdd2e4bdfaeed38fb6007b337b32d494b3997c.tar.gz
coinos-server-d4bdd2e4bdfaeed38fb6007b337b32d494b3997c.zip
check for lightning message
Diffstat (limited to 'lib')
-rw-r--r--lib/send.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/send.js b/lib/send.js
index 92b2eda3..293473d9 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -59,6 +59,7 @@ send = async (amount, memo, hash, user) => {
fee_limit: { fixed: Math.min(10000, account.balance) },
});
+ if (!m) throw new Error("lightning payment failed");
if (m.payment_error) throw new Error(m.payment_error);
({