cloudhead/nakamoto

Peer banning

Open

#9 创建于 2021年1月23日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Rust (63 fork)github user discovery
help wanted

仓库指标

Star
 (390 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南