Skip to content

Commit

Permalink
pyln-testing: use provided outnum instead of trying to find it
Browse files Browse the repository at this point in the history
Dual-funded channels won't match the old amount check. Good news is
we're already returning the outnum so we just use that.
  • Loading branch information
niftynei authored and rustyrussell committed May 3, 2021
1 parent 38b992b commit 4730678
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,7 @@ def has_funds_on_addr(addr):
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)
Expand Down

0 comments on commit 4730678

Please sign in to comment.