Skip to content
Merged
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
5 changes: 4 additions & 1 deletion simulators/ethereum/engine/enginetests.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ var (
)

var engineTests = []TestSpec{

// Engine API Negative Test Cases
{
Name: "Invalid Terminal Block in ForkchoiceUpdated",
Expand Down Expand Up @@ -985,6 +984,10 @@ func invalidPayloadTestCaseGen(payloadField InvalidPayloadField, syncing bool, e
// it is assumed that the block is missing and we need to sync.
// ACCEPTED also valid since the CLs normally use these interchangeably
q.ExpectStatusEither(Syncing, Accepted)
} else if payloadField == InvalidNumber {
// A payload with an invalid number can force us to start a sync cycle
// as we don't know if that block might be a valid future block.
q.ExpectStatusEither(Invalid, Syncing)
} else {
// Otherwise the response should be INVALID.
q.ExpectStatus(Invalid)
Expand Down