mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-27 21:16:00 +00:00
Merge pull request #1989 from SChernykh/dev
Fixed broken Dero solo mining
This commit is contained in:
commit
8a1311f015
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