# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BuildMsgIdFn builds a generic message ID function for gossipsub that can handle compressed payloads, mirroring the eth2 p2p gossip spec.
BuildSubscriptionFilter builds a simple subscription filter, to help protect against peers spamming useless subscriptions.
ConfigurePeerScoring configures the peer scoring parameters for the pubsub.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LightPeerScoreParams is an instantiation of [pubsub.PeerScoreParams] with light penalties.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewGossipSub configures a new pubsub instance with the specified parameters.
No description provided by the author
No description provided by the author
NewNodeP2P creates a new p2p node, and returns a reference to it.
No description provided by the author
NewPeerScoreThresholds returns a default [pubsub.PeerScoreThresholds].
No description provided by the author
NewScorer returns a new peer scorer.
No description provided by the author
No description provided by the author
No description provided by the author
ScoreDecay returns the decay factor for a given duration.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
DecayEpoch is the number of epochs to decay the score over.
DecayToZero is the decay factor for a peer's score to zero.
topic stable mesh target count.
topic stable mesh high watermark.
gossip target.
topic stable mesh low watermark.
MaxInMeshScore is the maximum score for being in the mesh.
MeshWeight is the weight of the mesh delivery topic.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Config sets up a p2p host and discv5 service from configuration.
LocalSigner is suitable for testing.
NodeP2P is a p2p node, which can be used to gossip messages.
No description provided by the author
The discovery ENRs are just key-value lists, and we filter them by records tagged with the "opstack" key, and then check the chain ID and version.
No description provided by the author
No description provided by the author
No description provided by the author
Prepared provides a p2p host and discv5 service that is already set up.
No description provided by the author
No description provided by the author
ScoringParams defines the various types of peer scoring parameters.
SyncClient implements a reverse chain sync with a minimal interface: signal the desired range, and receive blocks within this range back.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go:generate mockery --name GossipMetricer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Peerstore is a subset of the libp2p peerstore.Peerstore interface.
No description provided by the author
No description provided by the author
go:generate mockery --name ScoreMetrics --output mocks/.
Scorer is a peer scorer that scores peers based on application-specific metrics.
SetupP2P provides a host and discovery service for usage in the rollup node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
Secp256k1 is like the geth Secp256k1 enr entry type, but using the libp2p pubkey representation instead.
StreamCtxFn provides a new context to use when handling stream requests.
No description provided by the author