LND Taproot Channel

This commit is contained in:
ShahanaFarooqui 2023-10-04 20:44:35 -07:00
parent 53eb5f086b
commit d478356076
20 changed files with 71 additions and 29 deletions

View file

@ -141,7 +141,11 @@ export const postChannel = (req, res, next) => {
else if (req.body.trans_type === '2') {
options.form.sat_per_byte = req.body.trans_type_value;
}
if (req.body.channel_type !== '') {
options.form.channel_type = req.body.channel_type;
}
options.form = JSON.stringify(options.form);
logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Channel Open Options', data: options.form });
request.post(options).then((body) => {
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Channel Opened', data: body });
res.status(201).json(body);