geth

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v1.14.5"

Version defines the geth version deployed to all networks.

Variables

This section is empty.

Functions

func WriteAllConfig

func WriteAllConfig(testnet types.Testnet) error

WriteAllConfig writes all the geth config files for all omniEVMs.

func WriteConfigTOML added in v0.1.5

func WriteConfigTOML(conf Config, path string) error

WriteConfigTOML writes the geth config to a toml file.

Types

type Config

type Config struct {
	// Moniker is the p2p node name.
	Moniker string
	// ChainID is the chain ID of the network.
	ChainID uint64
	// IsArchive defines whether the node should run in archive mode.
	IsArchive bool
	// BootNodes are the enode URLs of the P2P bootstrap nodes.
	BootNodes []*enode.Node
	// TrustedNodes are the enode URLs of the P2P trusted nodes.
	TrustedNodes []*enode.Node
}

Config is the configurable options for the standard omni geth config.

type FullConfig

type FullConfig struct {
	Eth     ethconfig.Config
	Node    node.Config
	Metrics metrics.Config
}

FullConfig is the go struct representation of the geth.toml config file. Copied from https://github.com/ethereum/go-ethereum/blob/master/cmd/geth/config.go#L95

func MakeGethConfig

func MakeGethConfig(conf Config) FullConfig

MakeGethConfig returns the full omni geth config for the provided custom config.

Jump to

Keyboard shortcuts

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