mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
bkpr: dont flake, wait til pay done before mining blocks
This commit is contained in:
@@ -539,15 +539,18 @@ def test_bookkeeping_onchaind_txs(node_factory, bitcoind):
|
|||||||
Test for a channel that's closed, but whose close tx
|
Test for a channel that's closed, but whose close tx
|
||||||
re-appears in the rescan
|
re-appears in the rescan
|
||||||
"""
|
"""
|
||||||
|
coin_mvt_plugin = Path(__file__).parent / "plugins" / "coin_movements.py"
|
||||||
l1, l2 = node_factory.line_graph(2,
|
l1, l2 = node_factory.line_graph(2,
|
||||||
wait_for_announce=True,
|
wait_for_announce=True,
|
||||||
opts={'disable-plugin': 'bookkeeper'})
|
opts={'disable-plugin': 'bookkeeper',
|
||||||
|
'plugin': str(coin_mvt_plugin)})
|
||||||
|
|
||||||
# Double check there's no bookkeeper plugin on
|
# Double check there's no bookkeeper plugin on
|
||||||
assert l1.daemon.opts['disable-plugin'] == 'bookkeeper'
|
assert l1.daemon.opts['disable-plugin'] == 'bookkeeper'
|
||||||
|
|
||||||
# Send l2 funds via the channel
|
# Send l2 funds via the channel
|
||||||
l1.pay(l2, 11000000)
|
l1.pay(l2, 11000000)
|
||||||
|
l1.daemon.wait_for_log(r'coin movement:.*\'invoice\'')
|
||||||
bitcoind.generate_block(10)
|
bitcoind.generate_block(10)
|
||||||
|
|
||||||
# Amicably close the channel, mine 101 blocks (channel forgotten)
|
# Amicably close the channel, mine 101 blocks (channel forgotten)
|
||||||
|
|||||||
Reference in New Issue
Block a user