From 517065e5bd34f7e1d5c27ce8c86476cd0810636a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 23 Jan 2024 12:51:20 -0800 Subject: return ourfee minus covered credits --- routes/payments.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'routes') 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 }); + }, }; -- cgit v1.2.3