Skip to content

Commit 3375680

Browse files
authored
eth/catalyst: fail on duplicate request types (#31071)
Refer to: ethereum/execution-apis#623
1 parent d3cc618 commit 3375680

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
@@ -1303,7 +1303,8 @@ func validateRequests(requests [][]byte) error {
13031303
return fmt.Errorf("empty request: %v", req)
13041304
}
13051305
// Check that requests are ordered by their type.
1306-
if req[0] < last {
1306+
// Each type must appear only once.
1307+
if req[0] <= last {
13071308
return fmt.Errorf("invalid request order: %v", req)
13081309
}
13091310
last = req[0]

0 commit comments

Comments
 (0)