Versions in this module Expand all Collapse all v1 v1.9.8 Jun 28, 2023 Changes in this version + const ConnectedPeersKey + const SendFailRateKey + const TimeSinceLastMsgReceivedKey + const TimeSinceLastMsgSentKey + type Config struct + AllowPrivateIPs bool + Beacons validators.Set + CPUTargeter tracker.Targeter + CompressionEnabled bool + DialerConfig dialer.Config + DiskTargeter tracker.Targeter + GossipTracker peer.GossipTracker + MaxClockDifference time.Duration + MaximumInboundMessageTimeout time.Duration + MyIPPort ips.DynamicIPPort + MyNodeID ids.NodeID + Namespace string + NetworkID uint32 + PeerReadBufferSize int + PeerWriteBufferSize int + PingFrequency time.Duration + ProxyEnabled bool + ProxyReadHeaderTimeout time.Duration + RequireValidatorToConnect bool + ResourceTracker tracker.ResourceTracker + TLSConfig *tls.Config + TLSKey crypto.Signer + TLSKeyLogFile string + ThrottlerConfig ThrottlerConfig + TrackedSubnets set.Set[ids.ID] + UptimeCalculator uptime.Calculator + UptimeMetricFreq time.Duration + UptimeRequirement float64 + Validators validators.Manager + type DelayConfig struct + InitialReconnectDelay time.Duration + MaxReconnectDelay time.Duration + type HealthConfig struct + Enabled bool + MaxPortionSendQueueBytesFull float64 + MaxSendFailRate float64 + MaxTimeSinceMsgReceived time.Duration + MaxTimeSinceMsgSent time.Duration + MinConnectedPeers uint + SendFailRateHalflife time.Duration + type Network interface + Dispatch func() error + ManuallyTrack func(nodeID ids.NodeID, ip ips.IPPort) + NodeUptime func(subnetID ids.ID) (UptimeResult, error) + PeerInfo func(nodeIDs []ids.NodeID) []peer.Info + StartClose func() + WantsConnection func(ids.NodeID) bool + func NewNetwork(config *Config, msgCreator message.Creator, ...) (Network, error) + func NewTestNetwork(log logging.Logger, networkID uint32, currentValidators validators.Set, ...) (Network, error) + type PeerListGossipConfig struct + PeerListGossipFreq time.Duration + PeerListNonValidatorGossipSize uint32 + PeerListNumValidatorIPs uint32 + PeerListPeersGossipSize uint32 + PeerListValidatorGossipSize uint32 + type ThrottlerConfig struct + InboundConnUpgradeThrottlerConfig throttling.InboundConnUpgradeThrottlerConfig + InboundMsgThrottlerConfig throttling.InboundMsgThrottlerConfig + MaxInboundConnsPerSec float64 + OutboundMsgThrottlerConfig throttling.MsgByteThrottlerConfig + type TimeoutConfig struct + PingPongTimeout time.Duration + ReadHandshakeTimeout time.Duration + type UptimeResult struct + RewardingStakePercentage float64 + WeightedAveragePercentage float64 v1.9.8-rc.9 Jun 28, 2023