From 33756802f60f0e38744ec7f6e1fda7f8efc43b19 Mon Sep 17 00:00:00 2001 From: Sina M <1591639+s1na@users.noreply.github.com> Date: Thu, 23 Jan 2025 20:38:09 +0100 Subject: [PATCH] eth/catalyst: fail on duplicate request types (#31071) Refer to: https://github.com/ethereum/execution-apis/pull/623 --- eth/catalyst/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 91b6511f71..37d962d070 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -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]