Skip to content

Commit

Permalink
channel_id unknown at funding time. Needs to be node_id
Browse files Browse the repository at this point in the history
No semantical change but when using the python lib for the rpc-api it is confusing that my developing environment suggests that I should fund a channel and pass a channel_id when in fact I want to pass a node_id
  • Loading branch information
renepickhardt authored and rustyrussell committed Aug 28, 2018
1 parent 77d3ca3 commit 5848a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/pylightning/lightning/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@ def listpeers(self, peerid=None, level=None):
}
return self.call("listpeers", payload)

def fundchannel(self, channel_id, satoshi):
def fundchannel(self, node_id, satoshi):
"""
Fund channel with {id} using {satoshi} satoshis"
"""
payload = {
"id": channel_id,
"id": node_id,
"satoshi": satoshi
}
return self.call("fundchannel", payload)
Expand Down

0 comments on commit 5848a5c

Please sign in to comment.