Fixed broken Dero solo mining

This commit is contained in:
SChernykh 2020-12-20 22:17:08 +01:00
parent ac46d6f8de
commit cde7cddcaa

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