pytest: fix test_channel_state_change_history

The test fails because the closed channel is deleted by the time we
check the state change history.

It is unnecessary to mine any blocks after the close, since the state
changes up to CLOSINGD_COMPLETE occur without onchain changes.
This commit is contained in:
Matt Morehouse 2022-08-17 11:26:29 -05:00 committed by neil saitug
parent 2c72229106
commit 0d5808b6f6

View file

@ -1011,10 +1011,7 @@ def test_channel_state_change_history(node_factory, bitcoind):
"""
l1, l2 = node_factory.line_graph(2)
scid = l1.get_channel_scid(l2)
l1.rpc.close(scid)
bitcoind.generate_block(100) # so it gets settled
bitcoind.generate_block(100) # so it gets settled
history = l1.rpc.listpeers()['peers'][0]['channels'][0]['state_changes']
if l1.config('experimental-dual-fund'):