Skip to content

Commit

Permalink
Fix recentBlockHash copying.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Jan 21, 2025
1 parent 4e90bd9 commit ab83f50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void setRecentBlockHash(final String recentBlockHash) {

@Override
public byte[] recentBlockHash() {
return Arrays.copyOfRange(data, recentBlockHashIndex, Transaction.BLOCK_HASH_LENGTH);
return Arrays.copyOfRange(data, recentBlockHashIndex, recentBlockHashIndex + Transaction.BLOCK_HASH_LENGTH);
}

@Override
Expand Down

0 comments on commit ab83f50

Please sign in to comment.