eth2network

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBinariesExist

func EnsureBinariesExist() (string, error)

EnsureBinariesExist makes sure node binaries exist, returns the base path where binaries exist Downloads any missing binaries

Types

type Eth2Network

type Eth2Network interface {
	GethGenesis() []byte
	Start() error
	Stop() error
}

func NewEth2Network

func NewEth2Network(
	binDir string,
	logToFile bool,
	gethHTTPPortStart int,
	gethWSPortStart int,
	gethAuthRPCPortStart int,
	gethNetworkPortStart int,
	prysmBeaconHTTPPortStart int,
	prysmBeaconP2PPortStart int,
	chainID int,
	numNodes int,
	blockTimeSecs int,
	slotsPerEpoch int,
	secondsPerSlot int,
	preFundedAddrs []string,
	timeout time.Duration,
) Eth2Network

type Impl

type Impl struct {
	// contains filtered or unexported fields
}

func (*Impl) GethGenesis

func (n *Impl) GethGenesis() []byte

GethGenesis returns the Genesis used in geth to boot up the network

func (*Impl) Start

func (n *Impl) Start() error

Start starts the network

func (*Impl) Stop

func (n *Impl) Stop() error

Stop stops the network

type RotatingLogWriter

type RotatingLogWriter struct {
	// contains filtered or unexported fields
}

func NewRotatingLogWriter

func NewRotatingLogWriter(dirPath, fileStartName string, maxFileSize int64, maxNumFiles int) (*RotatingLogWriter, error)

func (*RotatingLogWriter) Write

func (w *RotatingLogWriter) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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