waitForHeaderCatchup

If a batch of headers arrived within the last HEADER_CATCHUP_WINDOW_MS, wait until the headers are synced (or maxWaitMs passes), so that the current tip is the real tip. Used before starting a new wallet "now", which would otherwise have to scan every block between where the header sync was and where it ends up.

Return

true if headers are synced (or were not catching up), false if it gave up waiting