params

package
v0.2.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNetwork = DevNet

DefaultNetwork sets a default network for Celestia Node.

View Source
var ErrInvalidNetwork = errors.New("build: invalid network")

ErrInvalidNetwork is thrown when unknown network is used.

Functions

func Bootstrappers

func Bootstrappers() []string

Bootstrappers reports multiaddresses of bootstrap peers for the node's current network.

func BootstrappersFor

func BootstrappersFor(net Network) ([]string, error)

BootstrappersFor reports multiaddresses of bootstrap peers for a given network.

func Genesis

func Genesis() string

Genesis reports a hash of a genesis block for the current network.

func GenesisFor

func GenesisFor(net Network) (string, error)

GenesisFor reports a hash of a genesis block for a given network.

Types

type Network

type Network string

Network is a type definition for DA network run by Celestia Node.

const (
	// DevNet or devnet-2 according to celestiaorg/networks
	DevNet Network = "devnet-2"
)

NOTE: Every time we add a new long-running network, it has to be added here.

func GetNetwork

func GetNetwork() Network

GetNetwork returns the network of the current build.

func (Network) Validate

func (n Network) Validate() error

Validate the network.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL