Versions in this module Expand all Collapse all v2 v2.0.1 Oct 5, 2021 Changes in this version + var ErrNoPeerStatus = errors.New("no chain status for peer") + var ErrPeerUnknown = errors.New("peer unknown") + type PeerConnectionState ethpb.ConnectionState + type PeerData struct + Address ma.Multiaddr + BadResponses int + BehaviourPenalty float64 + BlockProviderUpdated time.Time + ChainState *pb.Status + ChainStateLastUpdated time.Time + ChainStateValidationError error + ConnState PeerConnectionState + Direction network.Direction + Enr *enr.Record + GossipScore float64 + MetaData metadata.Metadata + NextValidTime time.Time + ProcessedBlocks uint64 + TopicScores map[string]*pb.TopicScoreSnapshot + type Store struct + func NewStore(ctx context.Context, config *StoreConfig) *Store + func (s *Store) Config() *StoreConfig + func (s *Store) DeletePeerData(pid peer.ID) + func (s *Store) PeerData(pid peer.ID) (*PeerData, bool) + func (s *Store) PeerDataGetOrCreate(pid peer.ID) *PeerData + func (s *Store) Peers() map[peer.ID]*PeerData + func (s *Store) SetPeerData(pid peer.ID, data *PeerData) + type StoreConfig struct + MaxPeers int Other modules containing this package github.com/prysmaticlabs/prysm github.com/prysmaticlabs/prysm/v3 github.com/prysmaticlabs/prysm/v4 github.com/prysmaticlabs/prysm/v5