#10982 started disconnecting service bits 6 and 8 until aug 1, 2018, the code to do so should be removed on or after that date.
{
    if (connman == nullptr) return;
    int64_t time_in_seconds = GetTime();
    EvictExtraOutboundPeers(time_in_seconds);
    if (time_in_seconds > m_stale_tip_check_time) {
        LOCK(cs_main);
        
        
        if (TipMayBeStale(consensusParams)) {
            LogPrintf("Potential stale tip detected, will try using extra outbound peer (last tip update: %d seconds ago)\n", time_in_seconds - g_last_tip_update);
            connman->SetTryNewOutboundPeer(true);
        } else if (connman->GetTryNewOutboundPeer()) {
            connman->SetTryNewOutboundPeer(false);
        }
        m_stale_tip_check_time = time_in_seconds + STALE_CHECK_INTERVAL;
    }
}
class CompareInvMempoolOrder