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;
}