Skip to content

Commit cc16d7b

Browse files
committed
Use 32 SlotsPerEpoch in devnet for faster e2e testing
1 parent a1af9c0 commit cc16d7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/spec/devnet.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const (
3333
devnetElectraForkTime = 0
3434
)
3535

36-
// DevnetChainSpecData is the chain.SpecData for a devnet.
36+
// DevnetChainSpecData is the chain.SpecData for a devnet. We try to keep this
37+
// as close to the mainnet spec as possible.
3738
func DevnetChainSpecData() *chain.SpecData {
3839
specData := MainnetChainSpecData()
3940
specData.DepositEth1ChainID = DevnetEth1ChainID
@@ -42,6 +43,9 @@ func DevnetChainSpecData() *chain.SpecData {
4243
specData.Deneb1ForkTime = devnetDeneb1ForkTime
4344
specData.ElectraForkTime = devnetElectraForkTime
4445

46+
// Use fewer slots per epoch for devnet to speed up testing.
47+
specData.SlotsPerEpoch = 32
48+
4549
return specData
4650
}
4751

0 commit comments

Comments
 (0)