Prior to merging a PR, I run 4 different build configurations and their tests in parallel, and consistently one of those will have feature_assumevalid.py fail. The failure is because the assert_debug_log context exits before the invalid block is processed, so the lines it is looking for don’t appear in the part of the log that it is examining.
This PR should resolve that issue by waiting for getchaintips to report that the invalid chain is invalid before exiting the assert_debug_log context.