Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/active peer filters #65

Merged
merged 4 commits into from
Nov 23, 2023
Merged

Update/active peer filters #65

merged 4 commits into from
Nov 23, 2023

Conversation

cortze
Copy link
Collaborator

@cortze cortze commented Nov 21, 2023

Motivation

We've been spotting a wide set of dv5 entries that seem to be related to stale records. This makes the crawler algorithm subject to count as "active" nodes that are no longer participating in the network just because someone is sharing its ENR.

related links:

Description

This PR aims to set an extra filter of what the crawler understands as "active", checking the last time we connected to the nodes.

Tasks

  • add dynamically changeable interval for the "last_activity" column that will determine whether the node is active or not
  • ensure that the crawler writes the list of active nodes as soon as it is restarted (if the list is not empty)

Proof of Success

  • waiting to be tested in dev

@cortze cortze merged commit f4dfd0b into master Nov 23, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant