Skip to content

Commit

Permalink
eth/catalyst: fail on duplicate request types (#31071)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na authored Jan 23, 2025
1 parent d3cc618 commit 3375680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,8 @@ func validateRequests(requests [][]byte) error {
return fmt.Errorf("empty request: %v", req)
}
// Check that requests are ordered by their type.
if req[0] < last {
// Each type must appear only once.
if req[0] <= last {
return fmt.Errorf("invalid request order: %v", req)
}
last = req[0]
Expand Down

0 comments on commit 3375680

Please sign in to comment.