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)
| 37 | |
| 38 | |
| 39 | def 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 | |
| 52 | def test_option_passthrough(node_factory, directory): |
no test coverage detected