From 00a70295144a510fe4d7bd191b33edb95341a67d Mon Sep 17 00:00:00 2001 From: boufni95 Date: Thu, 30 Jul 2020 20:53:32 +0200 Subject: [PATCH] amt push fix --- src/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index 24f84364..5bba396d 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1189,7 +1189,7 @@ module.exports = async ( const openChannelRequest = { node_pubkey: Buffer.from(pubkey, 'hex'), local_funding_amount: channelCapacity, - push_sat: channelPushAmount, + push_sat: channelPushAmount === '' ? '0' : channelPushAmount, sat_per_byte:satPerByte, }; logger.info("OpenChannelRequest", openChannelRequest);