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.
This commit is contained in:
niftynei
2021-04-29 11:28:17 -05:00
committed by Rusty Russell
parent 38b992b805
commit 473067859f

View File

@@ -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)