diff --git a/src/crypto/CryptoNight_test.h b/src/crypto/CryptoNight_test.h index 0f7feda11..5717f1d35 100644 --- a/src/crypto/CryptoNight_test.h +++ b/src/crypto/CryptoNight_test.h @@ -66,7 +66,7 @@ const static uint8_t test_output_v0_lite[64] = { }; -// AEON v2 +// AEON v7 const static uint8_t test_output_v1_lite[64] = { 0x87, 0xC4, 0xE5, 0x70, 0x65, 0x3E, 0xB4, 0xC2, 0xB4, 0x2B, 0x7A, 0x0D, 0x54, 0x65, 0x59, 0x45, 0x2D, 0xFA, 0xB5, 0x73, 0xB8, 0x2E, 0xC5, 0x2F, 0x15, 0x2B, 0x7F, 0xF9, 0x8E, 0x79, 0x44, 0x6F, @@ -76,4 +76,14 @@ const static uint8_t test_output_v1_lite[64] = { #endif +#ifndef XMRIG_NO_SUMO +const static uint8_t test_output_heavy[64] = { + 0x4D, 0x94, 0x7D, 0xD6, 0xDB, 0x6E, 0x07, 0x48, 0x26, 0x4A, 0x51, 0x2E, 0xAC, 0xF3, 0x25, 0x4A, + 0x1F, 0x1A, 0xA2, 0x5B, 0xFC, 0x0A, 0xAD, 0x82, 0xDE, 0xA8, 0x99, 0x96, 0x88, 0x52, 0xD2, 0x7D, + 0x99, 0x83, 0xF2, 0x1B, 0xDF, 0x20, 0x10, 0xA8, 0xD7, 0x07, 0xBB, 0x2F, 0x14, 0xD7, 0x86, 0x64, + 0xBB, 0xE1, 0x18, 0x7F, 0x55, 0x01, 0x4B, 0x39, 0xE5, 0xF3, 0xD6, 0x93, 0x28, 0xE4, 0x8F, 0xC2 +}; +#endif + + #endif /* __CRYPTONIGHT_TEST_H__ */ diff --git a/src/workers/DoubleWorker.cpp b/src/workers/DoubleWorker.cpp index 273f1555c..a61767431 100644 --- a/src/workers/DoubleWorker.cpp +++ b/src/workers/DoubleWorker.cpp @@ -144,7 +144,7 @@ bool DoubleWorker::selfTest() } # endif - return true; + return memcmp(m_hash, test_output_heavy, 64) == 0; } diff --git a/src/workers/SingleWorker.cpp b/src/workers/SingleWorker.cpp index 5757ef77e..2d428fcbf 100644 --- a/src/workers/SingleWorker.cpp +++ b/src/workers/SingleWorker.cpp @@ -116,7 +116,7 @@ bool SingleWorker::selfTest() } # endif - return true; + return memcmp(m_result.result, test_output_heavy, 32) == 0; }