From cde7cddcaa6cb31fca4755f7915e745db7e8f188 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sun, 20 Dec 2020 22:17:08 +0100 Subject: [PATCH] Fixed broken Dero solo mining --- src/base/net/stratum/Job.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/net/stratum/Job.cpp b/src/base/net/stratum/Job.cpp index 9075e4b24..acd5a0d65 100644 --- a/src/base/net/stratum/Job.cpp +++ b/src/base/net/stratum/Job.cpp @@ -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; }