mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-11 05:14:40 +00:00
Fixed broken Dero solo mining
This commit is contained in:
parent
ac46d6f8de
commit
cde7cddcaa
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ bool xmrig::Job::setBlob(const char *blob)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_size /= 2;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue