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

Function test_gossip_store_load_uncompacted

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

Source from the content-addressed store, hash-verified

1774
1775
1776def test_gossip_store_load_uncompacted(node_factory, bitcoind):
1777 l2 = setup_gossip_store_test(node_factory, bitcoind)
1778
1779 gs_path = os.path.join(l2.daemon.lightning_dir, TEST_NETWORK, 'gossip_store')
1780 gs = subprocess.run(['devtools/dump-gossipstore', '--print-deleted', gs_path],
1781 check=True, timeout=TIMEOUT, stdout=subprocess.PIPE)
1782 print(gs.stdout.decode())
1783
1784 l2.restart()
1785
1786 # These appear before we're fully started, so will already in log:
1787 assert l2.daemon.is_in_log('gossip_store: 9 live records, 2 deleted')
1788
1789
1790def test_gossip_announce_invalid_block(node_factory, bitcoind):

Callers

nothing calls this directly

Calls 6

setup_gossip_store_testFunction · 0.85
joinMethod · 0.80
restartMethod · 0.80
is_in_logMethod · 0.80
runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected