cloudhead/nakamoto

Peer banning

Open

#9 aperta il 23 gen 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (63 fork)github user discovery
help wanted

Metriche repository

Star
 (390 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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/.

Guida contributor