params

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 13 Imported by: 10

Documentation

Overview

Package params defines all custom parameter configurations for running end to end tests.

Index

Constants

View Source
const (
	// Every EL component has an offset that manages which port it is assigned. The miner always gets offset=0.
	MinerComponentOffset = 0
	Eth1StaticFilesPath  = "/testing/endtoend/static-files/eth1"

	// DepositGasLimit is the gas limit used for all deposit transactions. The exact value probably isn't important
	// since these are the only transactions in the e2e run.
	DepositGasLimit = 4000000
	// SpamTxGasLimit is used for the spam transactions (to/from miner address)
	// which WaitForBlocks generates in order to advance the EL chain.
	SpamTxGasLimit = 21000
)
View Source
const (
	BootNodePort        = 2150
	BootNodeMetricsPort = BootNodePort + portSpan

	Eth1Port        = 3150
	Eth1RPCPort     = Eth1Port + portSpan
	Eth1WSPort      = Eth1Port + 2*portSpan
	Eth1AuthRPCPort = Eth1Port + 3*portSpan
	Eth1ProxyPort   = Eth1Port + 4*portSpan

	PrysmBeaconNodeRPCPort     = 4150
	PrysmBeaconNodeUDPPort     = PrysmBeaconNodeRPCPort + portSpan
	PrysmBeaconNodeTCPPort     = PrysmBeaconNodeRPCPort + 2*portSpan
	PrysmBeaconNodeGatewayPort = PrysmBeaconNodeRPCPort + 3*portSpan
	PrysmBeaconNodeMetricsPort = PrysmBeaconNodeRPCPort + 4*portSpan
	PrysmBeaconNodePprofPort   = PrysmBeaconNodeRPCPort + 5*portSpan

	LighthouseBeaconNodeP2PPort     = 5150
	LighthouseBeaconNodeHTTPPort    = LighthouseBeaconNodeP2PPort + portSpan
	LighthouseBeaconNodeMetricsPort = LighthouseBeaconNodeP2PPort + 2*portSpan

	ValidatorGatewayPort = 6150
	ValidatorMetricsPort = ValidatorGatewayPort + portSpan

	JaegerTracingPort = 9150

	StartupBufferSecs = 15
)

Base port values.

Variables

View Source
var BeaconNodeLogFileName = "beacon-%d.log"

BeaconNodeLogFileName is the file name used for the beacon chain node logs.

View Source
var BootNodeLogFileName = "bootnode.log"

BootNodeLogFileName is the file name used for the beacon chain node logs.

View Source
var DepositCount = uint64(64)

DepositCount is the number of deposits the E2E runner should make to evaluate post-genesis deposit processing.

View Source
var ExpectedExecEngineTxsThreshold = 0.5

ExpectedExecEngineTxsThreshold is the portion of execution engine transactions we expect to find in blocks.

View Source
var NumOfExecEngineTxs = uint64(200)

NumOfExecEngineTxs is the number of transaction sent to the execution engine.

View Source
var PregenesisExecCreds = uint64(8)

PregenesisExecCreds is the number of withdrawal credentials of genesis validators which use an execution address.

View Source
var StandardBeaconCount = 2

StandardBeaconCount is a global constant for the count of beacon nodes of standard E2E tests.

View Source
var StandardLighthouseNodeCount = 2

StandardLighthouseNodeCount is a global constant for the count of lighthouse beacon nodes of standard E2E tests.

View Source
var TestParams *params

TestParams is the globally accessible var for getting config elements.

View Source
var TracingRequestSinkFileName = "tracing-http-requests.log.gz"

TracingRequestSinkFileName is the file name for writing raw trace requests.

View Source
var ValidatorLogFileName = "vals-%d.log"

ValidatorLogFileName is the file name used for the validator client logs.

Functions

func Init

func Init(t *testing.T, beaconNodeCount int) error

Init initializes the E2E config, properly handling test sharding.

func InitMultiClient

func InitMultiClient(t *testing.T, beaconNodeCount int, lighthouseNodeCount int) error

InitMultiClient initializes the multiclient E2E config, properly handling test sharding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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