aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-23 12:51:20 -0800
committerAdam Soltys <[email protected]>2024-01-23 12:51:26 -0800
commit517065e5bd34f7e1d5c27ce8c86476cd0810636a (patch)
tree3787d520e70b34c9859088a8c4c406c78f032268 /routes
parent5b77684192f08cb29a3bbaf2a87413d4c4e8cc1b (diff)
downloadcoinos-server-517065e5bd34f7e1d5c27ce8c86476cd0810636a.tar.gz
coinos-server-517065e5bd34f7e1d5c27ce8c86476cd0810636a.zip
return ourfee minus covered credits
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js
index 768307c0..6e0f1159 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -327,7 +327,7 @@ export default {
type === types.liquid ? await node.blindRawTransaction(hex) : hex,
);
- ({ txid } = await node.decodeRawTransaction(signed));
+ ({ txid } = await node.decodeRawTransaction(signed));
let r = await node.testMempoolAccept([signed]);
if (!r[0].allowed) fail("transaction rejected");
@@ -463,4 +463,9 @@ export default {
bail(res, e.message);
}
},
+
+ async gateway({ body: { short_channel_id, webhook } }, res) {
+ await s(short_channel_id, webhook);
+ res.send({ ok: true });
+ },
};