mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
5278b75c02
* Change long-running e2e to run minimally * Merge branch 'master' into e2e-config-change * Remove deposits flag * Merge branch 'e2e-config-change' of github.com:prysmaticlabs/prysm into e2e-config-change * Merge branch 'master' of github.com:prysmaticlabs/prysm into e2e-config-change * Reduce secondsperslot * Add todo * Merge branch 'master' of github.com:prysmaticlabs/prysm into e2e-config-change * Merge refs/heads/master into e2e-config-change * Merge refs/heads/master into e2e-config-change * Merge refs/heads/master into e2e-config-change * Merge refs/heads/master into e2e-config-change * Merge refs/heads/master into e2e-config-change * Merge refs/heads/master into e2e-config-change
24 lines
698 B
Go
24 lines
698 B
Go
package params
|
|
|
|
// UseE2EConfig for beacon chain services.
|
|
func UseE2EConfig() {
|
|
beaconConfig = E2ETestConfig()
|
|
}
|
|
|
|
// 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 = 30 // 30 seconds so E2E has enough time to process deposits and get started.
|
|
|
|
// Time parameters.
|
|
e2eConfig.SecondsPerSlot = 12
|
|
e2eConfig.SecondsPerETH1Block = 2
|
|
e2eConfig.Eth1FollowDistance = 4
|
|
e2eConfig.ShardCommitteePeriod = 4
|
|
return e2eConfig
|
|
}
|