diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineForkchoiceUpdated.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineForkchoiceUpdated.java index cfb28bcc9ef..1cde6c259a0 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineForkchoiceUpdated.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineForkchoiceUpdated.java @@ -219,9 +219,14 @@ private boolean isPayloadAttributesValid( return false; } if (payloadAttributes.getTimestamp() < cancunTimestamp) { - LOG.warn("Payload attributes are present before cancun hardfork"); + if (payloadAttributes.getParentBeaconBlockRoot() != null) { + LOG.error( + "Parent beacon block root hash present in payload attributes before cancun hardfork"); + return false; + } } else if (payloadAttributes.getParentBeaconBlockRoot() == null) { - LOG.warn("Parent beacon block root not present in payload attributes after cancun hardfork"); + LOG.error( + "Parent beacon block root hash not present in payload attributes after cancun hardfork"); return false; } if (!getWithdrawalsValidator(