1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 16:33:32 -05:00

Fixed crash and added error message about seed_hash field.

This commit is contained in:
XMRig
2019-08-05 17:48:12 +07:00
parent 044fbd7e82
commit 3543abcc3c
3 changed files with 14 additions and 3 deletions

View File

@@ -77,5 +77,5 @@ bool xmrig::RxCache::init(const uint8_t *seed)
bool xmrig::RxCache::isReady(const uint8_t *seed) const
{
return memcmp(m_seed, seed, sizeof(m_seed)) == 0;
return m_initCount && memcmp(m_seed, seed, sizeof(m_seed)) == 0;
}