cloudhead / cloudhead/nakamoto

Peer banning

Open
#9 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Rust
Stars
391
Forks
64
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.