|
|
@ -1153,3 +1153,16 @@ def test_gossip_store_compact(node_factory, bitcoind): |
|
|
|
# Should restart ok. |
|
|
|
l2.restart() |
|
|
|
wait_for(lambda: l2.daemon.is_in_log('gossip_store: Read ')) |
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.xfail(strict=True) |
|
|
|
@unittest.skipIf(not DEVELOPER, "need dev-compact-gossip-store") |
|
|
|
def test_gossip_store_compact_restart(node_factory, bitcoind): |
|
|
|
l2 = setup_gossip_store_test(node_factory, bitcoind) |
|
|
|
|
|
|
|
# Should restart ok. |
|
|
|
l2.restart() |
|
|
|
wait_for(lambda: l2.daemon.is_in_log('gossip_store: Read ')) |
|
|
|
|
|
|
|
# Now compact store. |
|
|
|
l2.rpc.call('dev-compact-gossip-store') |
|
|
|