Skip to content

Blockchain reactor: disconnect from bad peers #2896

@milosevic

Description

@milosevic

We currently respond to each block request message by sending (more precisely trying to send) a block. So for example, a peer can keep sending us requests for the same block and we will deliver it. This is clearly not a behaviour of a good peer.

We need a way to measure a quality of peers and disconnect from bad peers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:p2pComponent: P2P pkgC:syncComponent: Fast Sync, State SyncT:bugType Bug (Confirmed)stalefor use by stalebot

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions