Skip to content

Store peer penality records in the PeerDB in PeerInfo #7245

Open
@jimmygchen

Description

@jimmygchen

Store peer penality records in the PeerDB in PeerInfo, so we have history of penalties and know what caused a peer to be disconnected / banned.

Context:

We're frequently getting stuck when syncing on peerdas devnet. We need to review our DAS related scoring and I think scoring would be a good way to test out rpc implementations, some brain dump here, is it worth having these:

  • a record of penalties that caused a peer to be disconnected (gated behind a flag)
    ...

@AgeManning suggesed that we could store the record (maybe just the last 20 or so) in the PeerDB in PeerInfo. This would be really helpful in understanding reasons why peers were disconnected, especially on devnets - where disconnects could easily result into network forking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NetworkingdasData Availability Sampling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions