From e96fd82d0487030d1964734ac7ab22614f048aab Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Mon, 16 Sep 2024 12:53:09 +0300 Subject: [PATCH] fix validation --- .../validation/ExecutionPayloadHeaderValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/validation/ExecutionPayloadHeaderValidator.java b/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/validation/ExecutionPayloadHeaderValidator.java index ce1940e68a6..c82102e5330 100644 --- a/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/validation/ExecutionPayloadHeaderValidator.java +++ b/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/validation/ExecutionPayloadHeaderValidator.java @@ -115,7 +115,7 @@ public SafeFuture validateForGossip( final boolean builderIsActive = builder.getActivationEpoch().isLessThanOrEqualTo(epoch) && epoch.isLessThan(builder.getExitEpoch()); - if (builderIsActive || builder.isSlashed()) { + if (!builderIsActive || builder.isSlashed()) { return reject("Builder is not active or is slashed"); } /*