mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
22e2278812
* Add heap file to e2e output * Add comment * Change to curl * Gaz * Merge branch 'master' of github.com:prysmaticlabs/prysm into add-heap-e2e * Run heap at start and end * Reorder defers * Merge branch 'master' of github.com:prysmaticlabs/prysm into add-heap-e2e * Fix * Fix * Change to logpath * Attempt * Merge branch 'master' of github.com:prysmaticlabs/prysm into add-heap-e2e * Fix heap file * Fix * Add more beaocn nodes * Final fixes * Merge branch 'master' of github.com:prysmaticlabs/prysm into add-heap-e2e * Fix slasher * Fixes * Fix * Fix comment * Merge branch 'master' into add-heap-e2e * Merge refs/heads/master into add-heap-e2e * Merge branch 'master' of github.com:prysmaticlabs/prysm into add-heap-e2e * Fix comment * Merge branch 'master' into add-heap-e2e * Merge refs/heads/master into add-heap-e2e * Merge branch 'master' of github.com:prysmaticlabs/prysm into add-heap-e2e * Fix * Change memusage to 2gb * Merge refs/heads/master into add-heap-e2e * Update endtoend/evaluators/metrics.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
33 lines
977 B
Go
33 lines
977 B
Go
package params
|
|
|
|
// UseE2EConfig for beacon chain services.
|
|
func UseE2EConfig() {
|
|
beaconConfig = E2ETestConfig()
|
|
|
|
cfg := BeaconNetworkConfig().Copy()
|
|
cfg.ChainID = 1337 // Chain ID of eth1 dev net.
|
|
cfg.NetworkID = 1337 // Network ID of eth1 dev net.
|
|
OverrideBeaconNetworkConfig(cfg)
|
|
}
|
|
|
|
// E2ETestConfig retrieves the configurations made specifically for E2E testing.
|
|
// Warning: This config is only for testing, it is not meant for use outside of E2E.
|
|
func E2ETestConfig() *BeaconChainConfig {
|
|
e2eConfig := MinimalSpecConfig()
|
|
|
|
// Misc.
|
|
e2eConfig.MinGenesisActiveValidatorCount = 256
|
|
e2eConfig.GenesisDelay = 10 // 10 seconds so E2E has enough time to process deposits and get started.
|
|
|
|
// Time parameters.
|
|
e2eConfig.SecondsPerSlot = 10
|
|
e2eConfig.SlotsPerEpoch = 6
|
|
e2eConfig.SecondsPerETH1Block = 2
|
|
e2eConfig.Eth1FollowDistance = 4
|
|
e2eConfig.EpochsPerEth1VotingPeriod = 2
|
|
e2eConfig.ShardCommitteePeriod = 4
|
|
e2eConfig.MaxSeedLookahead = 1
|
|
|
|
return e2eConfig
|
|
}
|