aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-18 15:44:24 -0400
committerAdam Soltys <[email protected]>2021-08-30 16:03:09 -0700
commit88aac8f4352d5a117011b919b8119ec7b65d8e94 (patch)
treef8e509754071141f5ed59c35f5a3f7cb670cea49
parent552b399de4dcd22c7d207b042ab5ca4ad9475e5a (diff)
downloadcoinos-server-88aac8f4352d5a117011b919b8119ec7b65d8e94.tar.gz
coinos-server-88aac8f4352d5a117011b919b8119ec7b65d8e94.zip
check for lightning message
-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);
({