Skip to content

Commit

Permalink
cryptonote_format_utils: fix empty buffer hash
Browse files Browse the repository at this point in the history
It was in the wrong byte order
  • Loading branch information
moneromooo-monero committed Mar 20, 2019
1 parent f2f725d commit 36c4370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_basic/cryptonote_format_utils.cpp
Expand Up @@ -982,7 +982,7 @@ namespace cryptonote
{ {
if (t.version == 1) if (t.version == 1)
return false; return false;
static const crypto::hash empty_hash = { (char)0x70, (char)0xa4, (char)0x85, (char)0x5d, (char)0x04, (char)0xd8, (char)0xfa, (char)0x7b, (char)0x3b, (char)0x27, (char)0x82, (char)0xca, (char)0x53, (char)0xb6, (char)0x00, (char)0xe5, (char)0xc0, (char)0x03, (char)0xc7, (char)0xdc, (char)0xb2, (char)0x7d, (char)0x7e, (char)0x92, (char)0x3c, (char)0x23, (char)0xf7, (char)0x86, (char)0x01, (char)0x46, (char)0xd2, (char)0xc5 }; static const crypto::hash empty_hash = { (char)0xc5, (char)0xd2, (char)0x46, (char)0x01, (char)0x86, (char)0xf7, (char)0x23, (char)0x3c, (char)0x92, (char)0x7e, (char)0x7d, (char)0xb2, (char)0xdc, (char)0xc7, (char)0x03, (char)0xc0, (char)0xe5, (char)0x00, (char)0xb6, (char)0x53, (char)0xca, (char)0x82, (char)0x27, (char)0x3b, (char)0x7b, (char)0xfa, (char)0xd8, (char)0x04, (char)0x5d, (char)0x85, (char)0xa4, (char)0x70 };
const unsigned int unprunable_size = t.unprunable_size; const unsigned int unprunable_size = t.unprunable_size;
if (blob && unprunable_size) if (blob && unprunable_size)
{ {
Expand Down

0 comments on commit 36c4370

Please sign in to comment.