Skip to content

feat(discovery): discover triggered too frequently #3550

Open
@guillaumemichel

Description

@guillaumemichel

In the case a node doesn't have its quota of peers, it will send a new discover request every second. There are no guarantees that the discover request can complete within 1 second.

case <-t.C:
if !d.discover(ctx) {
// rerun discovery if the number of peers hasn't reached the limit
continue
}

This interval seems too aggressive and should probably be increased (e.g to 1 or even 5 minutes?)

Metadata

Metadata

Assignees

Labels

externalIssues created by non node team memberskind:miscAttached to miscellaneous PRs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions