Documentation ¶
Overview ¶
Package components defines utilities to spin up actual beacon node and validator processes as needed by end to end tests.
Index ¶
- func SendAndMineDeposits(t *testing.T, keystorePath string, validatorNum int, offset int)
- func SendDeposits(web3 *ethclient.Client, keystoreBytes []byte, num int, offset int) error
- func StartBeaconNodes(t *testing.T, config *types.E2EConfig, enr string) []int
- func StartBootnode(t *testing.T) (string, int)
- func StartEth1Node(t *testing.T) (string, int)
- func StartNewBeaconNode(t *testing.T, config *types.E2EConfig, index int, enr string) int
- func StartNewValidatorClient(t *testing.T, config *types.E2EConfig, validatorNum int, index int) int
- func StartSlashers(t *testing.T) []int
- func StartValidatorClients(t *testing.T, config *types.E2EConfig, keystorePath string) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendAndMineDeposits ¶
SendAndMineDeposits sends the requested amount of deposits and mines the chain after to ensure the deposits are seen.
func SendDeposits ¶
SendDeposits uses the passed in web3 and keystore bytes to send the requested deposits.
func StartBeaconNodes ¶
StartBeaconNodes starts the requested amount of beacon nodes, passing in the deposit contract given.
func StartBootnode ¶
StartBootnode starts a bootnode and returns its ENR and process ID.
func StartEth1Node ¶
StartEth1Node starts an eth1 local dev chain and deploys a deposit contract.
func StartNewBeaconNode ¶
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 ¶
StartSlashers starts slasher clients for use within E2E, connected to all beacon nodes. It returns the process IDs of the slashers.
Types ¶
This section is empty.