Skip to main content

mainnet_gossipsub_prefix

Function mainnet_gossipsub_prefix 

Source
pub(crate) fn mainnet_gossipsub_prefix() -> Option<&'static str>
Expand description

Mainnet libp2p protocol identifiers. The snapshot tests below lock these down so a change that would partition mainnet (e.g. a stray protocol_id_prefix call) is caught. None for gossipsub means “do not call protocol_id_prefix” — libp2p’s defaults (/meshsub/1.1.0 and /meshsub/1.0.0) are then used.