Skip to content

Do not mark peer as low quality too soon if there is only one peer connected #6803

@kamilchodola

Description

@kamilchodola

In a situation where there is only one peer connected we have a logic which can very quickly mark this peer as low quality one:

return SyncResponseHandlingResult.LesserQuality;

It is problematic especially on testing scenario where we set only 1 selected peer to sync from but can be problematic on small chains as well. Would be really nice to improve that part of code to make sure that maybe first node should update pivot and then recheck this peer once more.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions