Skip to content

Commit

Permalink
bugfix: ripemd was being passed wrong size. now generates correct has…
Browse files Browse the repository at this point in the history
…hes.
  • Loading branch information
genjix committed Apr 18, 2014
1 parent 7211694 commit afcb074
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utility/hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ short_hash generate_short_hash(const data_chunk& chunk)
sha_hash.data());

short_hash ripemd_hash;
RMD160(sha_hash.data(), static_cast<uint32_t>(ripemd_hash.size()),
ripemd_hash.data());
RMD160(sha_hash.data(), hash_digest_size, ripemd_hash.data());

return ripemd_hash;
}
Expand Down

0 comments on commit afcb074

Please sign in to comment.