Merge pull request #26 from shocknet/ui-fixies

Ui fixies
This commit is contained in:
Daniel Lugo 2020-02-15 18:44:33 -04:00 committed by GitHub
commit 05e2f80da1

View file

@ -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);