Skip to content

Commit

Permalink
allow to use even lower seconds_per_slot and slots_per_epoch values
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Jan 10, 2024
1 parent 47df764 commit ab21990
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/test_env/eth2_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ func (c *EthereumChainConfig) Validate(logger zerolog.Logger) error {
if c.ValidatorCount < 4 {
return fmt.Errorf("validator count must be >= 4")
}
if c.SecondsPerSlot < 4 {
return fmt.Errorf("seconds per slot must be >= 4")
if c.SecondsPerSlot < 3 {
return fmt.Errorf("seconds per slot must be >= 3")
}
if c.SlotsPerEpoch < 2 {
return fmt.Errorf("slots per epoch must be >= 2")
if c.SlotsPerEpoch < 1 {
return fmt.Errorf("slots per epoch must be >= 1")
}
if c.GenesisDelay < 10 {
return fmt.Errorf("genesis delay must be >= 10")
Expand Down

0 comments on commit ab21990

Please sign in to comment.