Skip to content

Commit

Permalink
fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Dec 9, 2024
1 parent 0d6f814 commit e16bb37
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit e16bb37

Please sign in to comment.