components

package
v1.0.0-alpha.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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

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

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

func SendDeposits

func SendDeposits(web3 *ethclient.Client, keystoreBytes []byte, num int, offset int) error

SendDeposits uses the passed in web3 and keystore bytes to send the requested deposits.

func StartBeaconNodes

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

StartBeaconNodes starts the requested amount of beacon nodes, passing in the deposit contract given.

func StartBootnode

func StartBootnode(t *testing.T) (string, int)

StartBootnode starts a bootnode and returns its ENR and process ID.

func StartEth1Node

func StartEth1Node(t *testing.T) (string, int)

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) int

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

func StartNewValidatorClient

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

StartNewValidatorClient starts a validator client with the passed in configuration.

func StartSlashers

func StartSlashers(t *testing.T) []int

StartSlashers starts slasher clients for use within E2E, connected to all beacon nodes. It returns the process IDs of the slashers.

func StartValidatorClients

func StartValidatorClients(t *testing.T, config *types.E2EConfig, keystorePath string) []int

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