From 90d45963e50b3d7a8ca4a26c06204e301c80fe63 Mon Sep 17 00:00:00 2001 From: fab-10 <91944855+fab-10@users.noreply.github.com> Date: Mon, 8 Nov 2021 21:47:59 +0100 Subject: [PATCH] Fix a double execution of the same method (#3021) Signed-off-by: Fabio Di Fabio --- .../jsonrpc/internal/methods/AbstractBlockParameterMethod.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/AbstractBlockParameterMethod.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/AbstractBlockParameterMethod.java index 4da6a5d861..59bdab7cf7 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/AbstractBlockParameterMethod.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/AbstractBlockParameterMethod.java @@ -82,7 +82,6 @@ public abstract class AbstractBlockParameterMethod implements JsonRpcMethod { requestContext.getRequest().getId(), ((JsonRpcErrorResponse) response).getError()); } - return new JsonRpcSuccessResponse( - requestContext.getRequest().getId(), findResultByParamType(requestContext)); + return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), response); } }