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

Function wait_bwatch_caught_up

tests/test_plugin.py:39–49  ·  view source on GitHub ↗

Wait until bwatch has caught up to the chain tip and is idle. After restart, height replayed from the datastore skips the "First poll" debug line; both paths eventually emit "No block change" once idle.

(node, timeout=TIMEOUT)

Source from the content-addressed store, hash-verified

37
38
39def wait_bwatch_caught_up(node, timeout=TIMEOUT):
40 """Wait until bwatch has caught up to the chain tip and is idle.
41
42 After restart, height replayed from the datastore skips the "First poll"
43 debug line; both paths eventually emit "No block change" once idle.
44 """
45 node.daemon.wait_for_log(
46 r'First poll: init at block|No block change, current_height remains',
47 timeout=timeout,
48 )
49 node.daemon.wait_for_log(r'No block change', timeout=timeout)
50
51
52def test_option_passthrough(node_factory, directory):

Calls 1

wait_for_logMethod · 0.80

Tested by

no test coverage detected