Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2025 v0.0.1 Jan 15, 2025 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 *ethpb.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]*ethpb.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) DeleteTrustedPeers(peers []peer.ID) + func (s *Store) GetTrustedPeers() []peer.ID + func (s *Store) IsTrustedPeer(p peer.ID) bool + 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) + func (s *Store) SetTrustedPeers(peers []peer.ID) + type StoreConfig struct + MaxPeers int