Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Fix for empty array returned when (hash == null && parsed == true && …
Browse files Browse the repository at this point in the history
…rlpEncoded != null). See pull request #1057
  • Loading branch information
ESchouten committed Mar 26, 2019
1 parent 8731060 commit 6bce3d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ public boolean isParsed() {
public byte[] getHash() {
if (!isEmpty(hash)) return hash;
rlpParse();
getEncoded();
return hash;
byte[] plainMsg = getEncoded();
return hash = HashUtil.sha3(plainMsg);
}

public byte[] getRawHash() {
Expand Down

0 comments on commit 6bce3d0

Please sign in to comment.