From 4a263243d4bbbe77a88cf97b3902458e645ae938 Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Fri, 22 Nov 2024 13:46:30 -0700 Subject: [PATCH] fix: fixed the fake hash function Signed-off-by: Matt Peterson --- .../src/main/java/com/hedera/block/server/producer/Util.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/com/hedera/block/server/producer/Util.java b/server/src/main/java/com/hedera/block/server/producer/Util.java index bd8214e4..08f323c9 100644 --- a/server/src/main/java/com/hedera/block/server/producer/Util.java +++ b/server/src/main/java/com/hedera/block/server/producer/Util.java @@ -38,7 +38,6 @@ public static byte[] getFakeHash(@NonNull final List blockIte throws NoSuchAlgorithmException { // Calculate the SHA-384 hash MessageDigest digest = MessageDigest.getInstance("SHA-384"); - // return digest.digest(blockItems.getLast().blockProof()); - return new byte[0]; + return digest.digest(blockItems.getLast().blockProof().toByteArray()); } }