From bc14239df466c1663d8338e34c2ec92590cc6b49 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Tue, 11 Feb 2020 18:06:57 +0100 Subject: [PATCH] force channel flag --- src/routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index f1a8d2f2..3d06d64c 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1198,14 +1198,14 @@ module.exports = async ( res.json({ errorMessage: "LND is down" }); } } - const { channelPoint, outputIndex } = req.body; + const { channelPoint, outputIndex, force } = req.body; const closeChannelRequest = { channel_point: { funding_txid_bytes: Buffer.from(channelPoint, "hex"), funding_txid_str: channelPoint, output_index: outputIndex }, - force: true + force: force }; logger.info("CloseChannelRequest", closeChannelRequest); const closedChannel = lightning.closeChannel(closeChannelRequest);