Compare commits

...

1 Commits

Author SHA1 Message Date
terence tsao
2b20c2d546 test: delay slot0 production by 4s 2023-06-12 12:08:34 -07:00
2 changed files with 5 additions and 1 deletions

View File

@@ -347,6 +347,10 @@ func (vs *Server) proposeGenericBeaconBlock(ctx context.Context, blk interfaces.
ctx, span := trace.StartSpan(ctx, "ProposerServer.proposeGenericBeaconBlock")
defer span.End()
if blk.Block().Slot()%params.BeaconConfig().SlotsPerEpoch == 0 {
time.Sleep(4 * time.Second)
}
// Do not block proposal critical path with debug logging or block feed updates.
defer func() {
log.WithField("slot", blk.Block().Slot()).Debugf(

View File

@@ -21,7 +21,7 @@ func E2ETestConfig() *BeaconChainConfig {
e2eConfig.MaxValidatorsPerWithdrawalsSweep = 128
// Time parameters.
e2eConfig.SecondsPerSlot = 10
e2eConfig.SecondsPerSlot = 12
e2eConfig.SlotsPerEpoch = 6
e2eConfig.SqrRootSlotsPerEpoch = 2
e2eConfig.SecondsPerETH1Block = 2