Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions simulators/eth2/engine/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var (
}

SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY_CLIENT_OVERRIDE = map[string]*big.Int{
"teku": big.NewInt(128),
"teku": big.NewInt(16),
"lighthouse": big.NewInt(128),
}
)
Expand Down Expand Up @@ -1436,8 +1436,10 @@ func SyncingWithChainHavingInvalidPostTransitionBlock(t *hivesim.T, env *testEnv
exceptions := NewSyncHashes(transitionPayloadHash)
importerProxy.AddResponseCallback(EngineForkchoiceUpdatedV1, InvalidateExecutionPayloads(EngineForkchoiceUpdatedV1, exceptions, &transitionPayloadHash, callbackCalled))

// Wait here until `SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY` slots have passed
safeSlotsTimeout := testnet.SlotsTimeout(beacon.Slot(safeSlotsToImportOptimistically.Uint64() + safeSlotsImportThreshold))
// Wait here until `SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY` + safe slots have passed
time.Sleep(time.Duration((safeSlotsToImportOptimistically.Uint64()+safeSlotsImportThreshold)*config.SlotTime.Uint64()) * time.Second)
// Wait for callback or until timeout
safeSlotsTimeout := testnet.SlotsTimeout(beacon.Slot(safeSlotsImportThreshold))
forloop:
for {
select {
Expand Down