mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
pytest: add message check to test_blockheight_disagreement
Make sure there was an actual disagreement! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
b80b746cd9
commit
df594be80a
@@ -2902,6 +2902,9 @@ def test_blockheight_disagreement(node_factory, bitcoind, executor):
|
||||
# Make sure l1 sends out the HTLC.
|
||||
l1.daemon.wait_for_logs([r'NEW:: HTLC LOCAL'])
|
||||
|
||||
height = bitcoind.rpc.getblockchaininfo()['blocks']
|
||||
l1.daemon.wait_for_log('Remote node appears to be on a longer chain.*catch up to block {}'.format(height))
|
||||
|
||||
# Unblock l1 from new blocks.
|
||||
l1.daemon.rpcproxy.mock_rpc('getblockhash', None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user