persistent-channels: Use the correct parameter name

Some time ago we switched from `satoshi` to `amount` encoded as a suffixed
amount.
This commit is contained in:
Christian Decker
2020-05-15 16:48:55 +02:00
parent 9a1cf235d3
commit 162b5cc977

View File

@@ -39,6 +39,10 @@ def is_connectable(rpc, node_id):
def maybe_open_channel(desired, rpc):
peers = rpc.listpeers(desired['node_id'])['peers']
if 'satoshi' in desired:
desired['amount'] = "{}sat".format(desired['satoshi'])
del desired['satoshi']
if peers == []:
# Need to connect first, and then open a channel
#if not is_connectable(rpc, desired['node_id']):