mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +00:00
#2910 Fixed donation for GhostRider/RTM.
This commit is contained in:
parent
7ccb1d65f0
commit
14117e9658
2 changed files with 10 additions and 0 deletions
|
@ -65,6 +65,12 @@ bool xmrig::AutoClient::parseLogin(const rapidjson::Value &result, int *code)
|
||||||
m_mode = ETH_MODE;
|
m_mode = ETH_MODE;
|
||||||
setAlgo(algo);
|
setAlgo(algo);
|
||||||
|
|
||||||
|
# ifdef XMRIG_ALGO_GHOSTRIDER
|
||||||
|
if (algo.family() == Algorithm::GHOSTRIDER) {
|
||||||
|
setExtraNonce2Size(Json::getUint64(result, "extra_nonce2_size"));
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,10 @@ protected:
|
||||||
|
|
||||||
void setExtraNonce(const rapidjson::Value &nonce);
|
void setExtraNonce(const rapidjson::Value &nonce);
|
||||||
|
|
||||||
|
# ifdef XMRIG_ALGO_GHOSTRIDER
|
||||||
|
inline void setExtraNonce2Size(uint64_t size) { m_extraNonce2Size = size; }
|
||||||
|
# endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const char *errorMessage(const rapidjson::Value &error);
|
static const char *errorMessage(const rapidjson::Value &error);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue