Changed from channel_type to commitment_type

This commit is contained in:
ShahanaFarooqui 2023-10-05 11:04:14 -07:00
parent d478356076
commit 74af120c8f
13 changed files with 14 additions and 12 deletions

View file

@ -140,8 +140,8 @@ 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;
if (req.body.commitment_type) {
options.form.commitment_type = req.body.commitment_type;
}
options.form = JSON.stringify(options.form);
logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Channel Open Options', data: options.form });