components

package
v1.0.0-beta.0.rc Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package components defines utilities to spin up actual beacon node and validator processes as needed by end to end tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAndMineDeposits added in v1.0.0

func SendAndMineDeposits(t *testing.T, keystorePath string, validatorNum, offset int)

SendAndMineDeposits sends the requested amount of deposits and mines the chain after to ensure the deposits are seen.

func StartBeaconNodes

func StartBeaconNodes(t *testing.T, config *types.E2EConfig, enr string)

StartBeaconNodes starts the requested amount of beacon nodes.

func StartBootnode added in v1.0.0

func StartBootnode(t *testing.T) string

StartBootnode starts a bootnode and returns its ENR.

func StartEth1Node

func StartEth1Node(t *testing.T) string

StartEth1Node starts an eth1 local dev chain and deploys a deposit contract.

func StartNewBeaconNode

func StartNewBeaconNode(t *testing.T, config *types.E2EConfig, index int, enr string)

StartNewBeaconNode starts a fresh beacon node, connecting to all passed in beacon nodes.

func StartNewValidatorClient added in v1.0.0

func StartNewValidatorClient(t *testing.T, config *types.E2EConfig, validatorNum, index, offset int)

StartNewValidatorClient starts a validator client with the passed in configuration.

func StartSlashers

func StartSlashers(t *testing.T)

StartSlashers starts slasher clients for use within E2E, connected to all beacon nodes.

func StartValidatorClients added in v1.0.0

func StartValidatorClients(t *testing.T, config *types.E2EConfig)

StartValidatorClients starts the configured amount of validators, also sending and mining their validator deposits. Should only be used on initialization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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