Skip to content

Commit

Permalink
test_v2_open_sigs_restart: dont mine blocks until funding tx in mempool
Browse files Browse the repository at this point in the history
This was flaky because sometimes we'd generate blocks before the funding
transaction reached the mempool.

If we wait until it's in, it works as expected.
  • Loading branch information
niftynei committed Mar 22, 2021
1 parent ac25f23 commit 83a1227
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_opening.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def test_v2_open_sigs_restart(node_factory, bitcoind):
l1.rpc.openchannel_signed(chan_id, psbt)

l2.daemon.wait_for_log('Broadcasting funding tx')
l2.daemon.wait_for_log('sendrawtx exit 0')
txid = l2.rpc.listpeers(l1.info['id'])['peers'][0]['channels'][0]['funding_txid']
assert txid in bitcoind.rpc.getrawmempool()
bitcoind.generate_block(6)
sync_blockheight(bitcoind, [l1, l2])

Expand Down

0 comments on commit 83a1227

Please sign in to comment.