mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
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:
parent
2c72229106
commit
0d5808b6f6
1 changed files with 0 additions and 3 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Reference in a new issue