cloudhead/nakamoto

Peer banning

Open

#9 geöffnet am 23. Jan. 2021

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (63 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (390 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide