mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-22 15:44:20 +01:00
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:
@@ -39,6 +39,10 @@ def is_connectable(rpc, node_id):
|
|||||||
def maybe_open_channel(desired, rpc):
|
def maybe_open_channel(desired, rpc):
|
||||||
peers = rpc.listpeers(desired['node_id'])['peers']
|
peers = rpc.listpeers(desired['node_id'])['peers']
|
||||||
|
|
||||||
|
if 'satoshi' in desired:
|
||||||
|
desired['amount'] = "{}sat".format(desired['satoshi'])
|
||||||
|
del desired['satoshi']
|
||||||
|
|
||||||
if peers == []:
|
if peers == []:
|
||||||
# Need to connect first, and then open a channel
|
# Need to connect first, and then open a channel
|
||||||
#if not is_connectable(rpc, desired['node_id']):
|
#if not is_connectable(rpc, desired['node_id']):
|
||||||
|
|||||||
Reference in New Issue
Block a user