force channel flag
This commit is contained in:
parent
abd13325d4
commit
bc14239df4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue