RandomWOW support
This commit is contained in:
parent
277f188cd5
commit
ac1b554282
14 changed files with 157 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue