Commit 9ebead8c authored by Damian Johnson's avatar Damian Johnson
Browse files

Don't alarm for BadExit being out of sync with new relays

Each consensus has a lot of churn and it's normal for relays to be out of sync
initially. Only send BadExit sync notifications once a relay's been around for
a while.
parent 8ada4e03
Loading
Loading
Loading
Loading
+9 −0
Changes for consensus_health_checker.py: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -673,6 +673,15 @@ def bad_exits_in_sync(latest_consensus, consensuses, votes):
      else:
        not_in_consensus.append(authority)

    # If this relay's missing from a consensus and has been active for less
    # than an hour then don't bother. It gets negligable traffic and is likely
    # part of normal network churn.

    desc = votes[with_flag[0]].routers[fingerprint]

    if not_in_consensus and (datetime.datetime.now() - desc.published).total_seconds() > 3600:
      continue

    attr = ['with flag: %s' % ', '.join(with_flag)]

    if without_flag: