MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_gossip_store_compact

Function test_gossip_store_compact

tests/test_gossip.py:1668–1680  ·  view source on GitHub ↗
(node_factory, bitcoind)

Source from the content-addressed store, hash-verified

1666
1667@pytest.mark.developer("need dev-compact-gossip-store")
1668def test_gossip_store_compact(node_factory, bitcoind):
1669 l2 = setup_gossip_store_test(node_factory, bitcoind)
1670
1671 # Now compact store.
1672 l2.rpc.call('dev-compact-gossip-store')
1673
1674 # Should still be connected.
1675 time.sleep(1)
1676 assert len(l2.rpc.listpeers()['peers']) == 2
1677
1678 # Should restart ok.
1679 l2.restart()
1680 wait_for(lambda: l2.daemon.is_in_log('gossip_store: Read '))
1681
1682
1683@pytest.mark.developer("need dev-compact-gossip-store")

Callers

nothing calls this directly

Calls 6

wait_forFunction · 0.90
setup_gossip_store_testFunction · 0.85
restartMethod · 0.80
is_in_logMethod · 0.80
callMethod · 0.45
listpeersMethod · 0.45

Tested by

no test coverage detected