From e802b12812886ab16161ab07f5e9c721c4b008a1 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 16 Sep 2020 14:24:07 +0200 Subject: [PATCH] pyln: Rename LightningNode.fund_channel to fundchannel It is inconsistent with the RPC method, which was bothering me for some time. --- contrib/pyln-testing/pyln/testing/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 48b0b8a6d..5c8f21170 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -739,7 +739,11 @@ class LightningNode(object): self.start() def fund_channel(self, l2, amount, wait_for_active=True, announce_channel=True): + warnings.warn("LightningNode.fund_channel is deprecated in favor of " + "LightningNode.fundchannel", category=DeprecationWarning) + 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)