1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-17 21:13:14 -05:00

Merge branch 'dev' into feature/yadacoin

This commit is contained in:
pdxwebdev
2022-03-25 01:01:22 -07:00
committed by GitHub
85 changed files with 3069 additions and 357 deletions

View File

@@ -172,6 +172,18 @@ void xmrig::Job::setSigKey(const char *sig_key)
}
int32_t xmrig::Job::nonceOffset() const
{
auto f = algorithm().family();
if (f == Algorithm::KAWPOW) return 32;
if (f == Algorithm::GHOSTRIDER) return 76;
auto id = algorithm().id();
if (id == Algorithm::ASTROBWT_DERO_2) return 44;
return 39;
}
uint32_t xmrig::Job::getNumTransactions() const
{
if (!(m_algorithm.isCN() || m_algorithm.family() == Algorithm::RANDOM_X)) {