Skip to content

Commit

Permalink
fix: fixed the fake hash function
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Nov 22, 2024
1 parent 003eb31 commit 4a26324
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public static byte[] getFakeHash(@NonNull final List<BlockItemUnparsed> 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());
}
}

0 comments on commit 4a26324

Please sign in to comment.