mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue