celestiaorg / celestia-node

Celestia Data Availability Nodes
Apache License 2.0
910 stars 894 forks source link

node/p2p: Global peer score tracker #1129

Open Wondertan opened 1 year ago

Wondertan commented 1 year ago

There should be some single peer score tracking component that each protocol we have can report to. Sending bad data is something every protocol faces. What we could do, for now, is just to blacklist a peer completely.

_Originally posted by @Wondertan in https://github.com/celestiaorg/celestia-node/pull/1038#discussion_r971919869_

Wondertan commented 1 year ago

Additionally, the peer scorer may persist these peers and keep them over restart to bootstrap to the network.