mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
test nit: wait_for_mempool cleanup
Wait for mempool=1 before making a block
This commit is contained in:
parent
d87bdeeace
commit
4326c08927
1 changed files with 2 additions and 4 deletions
|
@ -934,8 +934,7 @@ def test_shutdown_awaiting_lockin(node_factory, bitcoind):
|
|||
chanid = l1.rpc.fundchannel(l2.info['id'], 10**6)['channel_id']
|
||||
|
||||
# Technically, this is async to fundchannel.
|
||||
l1.daemon.wait_for_log('sendrawtx exit 0')
|
||||
bitcoind.generate_block(1)
|
||||
bitcoind.generate_block(1, wait_for_mempool=1)
|
||||
|
||||
l1.rpc.close(chanid)
|
||||
|
||||
|
@ -951,9 +950,8 @@ def test_shutdown_awaiting_lockin(node_factory, bitcoind):
|
|||
# CLOSINGD_COMPLETE may come first).
|
||||
l1.daemon.wait_for_logs(['sendrawtx exit 0', ' to CLOSINGD_COMPLETE'])
|
||||
l2.daemon.wait_for_logs(['sendrawtx exit 0', ' to CLOSINGD_COMPLETE'])
|
||||
assert bitcoind.rpc.getmempoolinfo()['size'] == 1
|
||||
|
||||
bitcoind.generate_block(1)
|
||||
bitcoind.generate_block(1, wait_for_mempool=1)
|
||||
l1.daemon.wait_for_log(' to ONCHAIN')
|
||||
l2.daemon.wait_for_log(' to ONCHAIN')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue