Added "donate-over-proxy" option.

This commit is contained in:
XMRig
2019-03-19 00:16:30 +07:00
parent c8929fdfdf
commit dec7460e6a
15 changed files with 229 additions and 141 deletions

View File

@@ -54,8 +54,8 @@ xmrig::Network::Network(Controller *controller) :
const Pools &pools = controller->config()->pools();
m_strategy = pools.createStrategy(this);
if (controller->config()->donateLevel() > 0) {
m_donate = new DonateStrategy(controller->config()->donateLevel(), pools.data().front().user(), controller->config()->algorithm().algo(), this);
if (pools.donateLevel() > 0) {
m_donate = new DonateStrategy(controller, this);
}
m_timer = new Timer(this, kTickInterval, kTickInterval);