mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
RandomWOW support
This commit is contained in:
@@ -42,6 +42,7 @@ xmrig::Job::Job() :
|
||||
m_diff(0),
|
||||
m_height(0),
|
||||
m_target(0),
|
||||
m_seedHash(),
|
||||
m_blob()
|
||||
{
|
||||
}
|
||||
@@ -58,6 +59,7 @@ xmrig::Job::Job(int poolId, bool nicehash, const Algorithm &algorithm, const Str
|
||||
m_diff(0),
|
||||
m_height(0),
|
||||
m_target(0),
|
||||
m_seedHash(),
|
||||
m_blob()
|
||||
{
|
||||
}
|
||||
@@ -175,6 +177,15 @@ void xmrig::Job::setDiff(uint64_t diff)
|
||||
}
|
||||
|
||||
|
||||
bool xmrig::Job::setSeedHash(const char *hash)
|
||||
{
|
||||
if (!hash || (strlen(hash) != sizeof(m_seedHash) * 2))
|
||||
return false;
|
||||
|
||||
return Buffer::fromHex(hash, sizeof(m_seedHash) * 2, m_seedHash);
|
||||
}
|
||||
|
||||
|
||||
xmrig::Variant xmrig::Job::variant() const
|
||||
{
|
||||
switch (m_algorithm.algo()) {
|
||||
|
||||
Reference in New Issue
Block a user