Skip to content

Commit

Permalink
pyln: Rename LightningNode.fund_channel to fundchannel
Browse files Browse the repository at this point in the history
It is inconsistent with the RPC method, which was bothering me for some time.
  • Loading branch information
cdecker committed Sep 17, 2020
1 parent 7c485a9 commit 0df8243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,9 @@ def restart(self, timeout=10, clean=True):
self.start()

def fund_channel(self, l2, amount, wait_for_active=True, announce_channel=True):
return self.fundchannel(l2, amount, wait_for_active, announce_channel)

def fundchannel(self, l2, amount, wait_for_active=True, announce_channel=True):
# Give yourself some funds to work with
addr = self.rpc.newaddr()['bech32']
self.bitcoin.rpc.sendtoaddress(addr, (amount + 1000000) / 10**8)
Expand Down

0 comments on commit 0df8243

Please sign in to comment.