From 473067859fbf6ec9788d43f6c817151a32ce10bb Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 29 Apr 2021 11:28:17 -0500 Subject: [PATCH] pyln-testing: use provided outnum instead of trying to find it Dual-funded channels won't match the old amount check. Good news is we're already returning the outnum so we just use that. --- contrib/pyln-testing/pyln/testing/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 29db7af2e..cc3e3d362 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -864,8 +864,7 @@ class LightningNode(object): txnum = i scid = "{}x{}x{}".format(self.bitcoin.rpc.getblockcount(), - txnum, - get_tx_p2wsh_outnum(self.bitcoin, res['tx'], amount)) + txnum, res['outnum']) if wait_for_active: self.wait_channel_active(scid)