From e16bb37f2e6318f5b9bb033df2ee8a3bfae416bd Mon Sep 17 00:00:00 2001 From: Enrico Del Fante Date: Thu, 21 Nov 2024 13:29:53 +0100 Subject: [PATCH] fix comparison --- .../ForkChoiceBlobSidecarsAvailabilityChecker.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/forkchoice/ForkChoiceBlobSidecarsAvailabilityChecker.java b/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/forkchoice/ForkChoiceBlobSidecarsAvailabilityChecker.java index ac08c648bed..cdff49d3963 100644 --- a/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/forkchoice/ForkChoiceBlobSidecarsAvailabilityChecker.java +++ b/ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/forkchoice/ForkChoiceBlobSidecarsAvailabilityChecker.java @@ -98,7 +98,10 @@ private BlobSidecarsAndValidationResult validateCompletedBlobSidecars() { new IllegalStateException("Blob sidecars are not validated")); } if (!blobSidecar.isSignatureValidated() - && blobSidecar.getSignedBeaconBlockHeader().hashTreeRoot() != block.hashTreeRoot()) { + && !blobSidecar + .getSignedBeaconBlockHeader() + .hashTreeRoot() + .equals(block.hashTreeRoot())) { return BlobSidecarsAndValidationResult.notAvailable( new IllegalStateException("Blob sidecars block header does not match signed block")); }