Merge pull request #1989 from SChernykh/dev

Fixed broken Dero solo mining
This commit is contained in:
xmrig 2020-12-21 09:01:10 +07:00 committed by GitHub
commit 8a1311f015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,9 @@ bool xmrig::Job::setBlob(const char *blob)
}
m_size /= 2;
if (m_size < 76 || m_size >= sizeof(m_blob)) {
const size_t minSize = nonceOffset() + nonceSize();
if (m_size < minSize || m_size >= sizeof(m_blob)) {
return false;
}