Skip to content

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Apr 8, 2025

Changes

  • On a low peer network the retry mechanism from peers being pushed out of the filter may not kick in; so also add a 5 min timeout after which the peer is also reconsidered.

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • Refactoring

Testing

Requires testing

  • No

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/Nethermind/Nethermind.Network.Discovery/NodeFilter.cs:13

  • Consider validating the 'size' parameter (e.g., ensuring it is greater than zero) to prevent potential runtime issues with negative or zero values.
public class NodeFilter(int size)

@benaadams benaadams merged commit fd56a42 into master Apr 8, 2025
80 checks passed
@benaadams benaadams deleted the timeout-node-filter branch April 8, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants