Skip to content

Commit 3af2fda

Browse files
s1nasebastianst
authored andcommitted
eth/catalyst: fail on duplicate request types (#31071)
Refer to: ethereum/execution-apis#623
1 parent eb8b008 commit 3af2fda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eth/catalyst/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,8 @@ func validateRequests(requests [][]byte) error {
13471347
return fmt.Errorf("empty request: %v", req)
13481348
}
13491349
// Check that requests are ordered by their type.
1350-
if req[0] < last {
1350+
// Each type must appear only once.
1351+
if req[0] <= last {
13511352
return fmt.Errorf("invalid request order: %v", req)
13521353
}
13531354
last = req[0]

0 commit comments

Comments
 (0)