cloudhead/nakamoto

Peer banning

Open

#9 aberto em 23 de jan. de 2021

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (63 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (390 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Peers that misbehave or shouldn't be connected to / retry-ed for a while should be banned. We're mainly interested in saving time and bandwidth by doing this.

The banned peers should be stored in the client::peer::Cache with the ban duration and start time.

It probably makes sense to create a BanManager for this alongside the other sub-protocols in p2p/src/protocol/.

Guia do colaborador