cryptonote: use logging functions for errors, not std::cout

This commit is contained in:
moneromooo-monero 2018-10-27 18:07:55 +00:00
parent 4cbb476cd1
commit b3e8677c70
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -328,7 +328,7 @@ bool parse_hash256(const std::string str_hash, crypto::hash& hash)
bool res = epee::string_tools::parse_hexstr_to_binbuff(str_hash, buf); bool res = epee::string_tools::parse_hexstr_to_binbuff(str_hash, buf);
if (!res || buf.size() != sizeof(crypto::hash)) if (!res || buf.size() != sizeof(crypto::hash))
{ {
std::cout << "invalid hash format: <" << str_hash << '>' << std::endl; MERROR("invalid hash format: " << str_hash);
return false; return false;
} }
else else