From 44c23ede0465f73a3256573bc34cb032d5ab76f3 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Fri, 6 Dec 2019 11:22:40 +0100 Subject: [PATCH] chore: adds announce_channel parameter to pyln fund_channel --- contrib/pyln-testing/pyln/testing/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 901babdd8..08ede1768 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -693,7 +693,7 @@ class LightningNode(object): self.start() - def fund_channel(self, l2, amount, wait_for_active=True): + def fund_channel(self, l2, amount, wait_for_active=True, announce_channel=True): # Give yourself some funds to work with addr = self.rpc.newaddr()['bech32'] @@ -704,7 +704,7 @@ class LightningNode(object): # Now go ahead and open a channel num_tx = len(self.bitcoin.rpc.getrawmempool()) - tx = self.rpc.fundchannel(l2.info['id'], amount)['tx'] + tx = self.rpc.fundchannel(l2.info['id'], amount, announce=announce_channel)['tx'] wait_for(lambda: len(self.bitcoin.rpc.getrawmempool()) == num_tx + 1) self.bitcoin.generate_block(1)