Documentation ¶
Overview ¶
Package featureset defines a set of global features and their rollout status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableForT ¶
DisableForT disables a feature for testing.
func EnableForT ¶
EnableForT enables a feature for testing.
Types ¶
type Config ¶
type Config struct { // MinStatus defines the minimum enabled status. MinStatus string // Enabled overrides min status and enables a list of features. Enabled []string // Disabled overrides min status and disables a list of features. Disabled []string }
Config configures the feature set package.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default config enabling only stable features.
type Feature ¶
type Feature string
Feature is a feature being rolled out.
const ( // QBFTConsensus introduces qbft consensus, see https://github.com/ObolNetwork/charon/issues/445. QBFTConsensus Feature = "qbft_consensus" // Priority enables the infosync component using the priority protocol. Priority Feature = "priority" // MockAlpha is a mock feature in alpha status for testing. MockAlpha Feature = "mock_alpha" // RelayDiscovery enables relay peer discovery and disables discv5: // - If a direct connection to a peer is not possible then try to connect to it via all the provided bootnodes/relays. // - Direct connections are either not possible since no addresses are known or the addresses do not work. // - When connected via relay, libp2p's identify protocol detects the remote peer's addresses. // - Those are added to the peer store so libp2p will try to use them. RelayDiscovery Feature = "relay_discovery" )
Click to show internal directories.
Click to hide internal directories.