diff --git a/src/crypto/checksum.cpp b/src/crypto/checksum.cpp index 2715d750..d62cb3f1 100644 --- a/src/crypto/checksum.cpp +++ b/src/crypto/checksum.cpp @@ -90,8 +90,8 @@ std::ostream & operator<<(std::ostream & os, const crypto::checksum & checksum) break; } case crypto::SHA256: { - for(size_t i = 0; i < size_t(boost::size(checksum.sha1)); i++) { - os << std::setfill('0') << std::hex << std::setw(2) << int(boost::uint8_t(checksum.sha1[i])); + for(size_t i = 0; i < size_t(boost::size(checksum.sha256)); i++) { + os << std::setfill('0') << std::hex << std::setw(2) << int(boost::uint8_t(checksum.sha256[i])); } break; }