Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvCustomNetwork = "CELESTIA_CUSTOM" EnvPrivateGenesis = "CELESTIA_PRIVATE_GENESIS" )
Variables ¶
View Source
var ErrInvalidNetwork = errors.New("params: invalid network")
ErrInvalidNetwork is thrown when unknown network is used.
Functions ¶
func BootstrappersFor ¶
BootstrappersFor reports multiaddresses of bootstrap peers for a given network.
func BootstrappersInfosFor ¶
BootstrappersInfosFor returns address information of bootstrap peers for a given network.
func GenesisFor ¶
GenesisFor reports a hash of a genesis block for a given network. Genesis is strictly defined and can't be modified. To run a custom genesis private network use CELESTIA_PRIVATE_GENESIS env var.
Types ¶
type Network ¶
type Network string
Network is a type definition for DA network run by Celestia Node.
const ( // Mamaki testnet. See: celestiaorg/networks. Mamaki Network = "mamaki" // Private can be used to set up any private network, including local testing setups. // Use CELESTIA_PRIVATE_GENESIS env var to enable Private by specifying its genesis block hash. Private Network = "private" )
NOTE: Every time we add a new long-running network, it has to be added here.
func DefaultNetwork ¶
func DefaultNetwork() Network
DefaultNetwork returns the network of the current build.
Click to show internal directories.
Click to hide internal directories.