Added SelfSelectClient stub.
This commit is contained in:
parent
72c45d882b
commit
e9d2e194f3
17 changed files with 209 additions and 51 deletions
|
@ -234,7 +234,7 @@ void xmrig::DonateStrategy::onTimer(const Timer *)
|
|||
}
|
||||
|
||||
|
||||
xmrig::Client *xmrig::DonateStrategy::createProxy()
|
||||
xmrig::IClient *xmrig::DonateStrategy::createProxy()
|
||||
{
|
||||
if (m_controller->config()->pools().proxyDonate() == Pools::PROXY_DONATE_NONE) {
|
||||
return nullptr;
|
||||
|
@ -251,7 +251,7 @@ xmrig::Client *xmrig::DonateStrategy::createProxy()
|
|||
Pool pool(client->ip(), client->pool().port(), m_userId, client->pool().password(), 0, true, client->isTLS());
|
||||
pool.setAlgo(client->pool().algorithm());
|
||||
|
||||
auto proxy = new Client(-1, Platform::userAgent(), this);
|
||||
IClient *proxy = new Client(-1, Platform::userAgent(), this);
|
||||
proxy->setPool(pool);
|
||||
proxy->setQuiet(true);
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ private:
|
|||
|
||||
inline State state() const { return m_state; }
|
||||
|
||||
Client *createProxy();
|
||||
IClient *createProxy();
|
||||
void idle(double min, double max);
|
||||
void setAlgorithms(rapidjson::Document &doc, rapidjson::Value ¶ms);
|
||||
void setJob(IClient *client, const Job &job);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue