Browse Source

Merge pull request #2564 from LefterisJP/set_sealers_dofarm

Set sealers in doFarm()
cl-refactor
Gav Wood 10 years ago
parent
commit
cbcf0ff834
  1. 6
      ethminer/MinerAux.h

6
ethminer/MinerAux.h

@ -471,6 +471,11 @@ private:
void doFarm(MinerType _m, string const& _remote, unsigned _recheckPeriod)
{
map<string, GenericFarm<EthashProofOfWork>::SealerDescriptor> sealers;
sealers["cpu"] = GenericFarm<EthashProofOfWork>::SealerDescriptor{&EthashCPUMiner::instances, [](GenericMiner<EthashProofOfWork>::ConstructionInfo ci){ return new EthashCPUMiner(ci); }};
#if ETH_ETHASHCL
sealers["opencl"] = GenericFarm<EthashProofOfWork>::SealerDescriptor{&EthashGPUMiner::instances, [](GenericMiner<EthashProofOfWork>::ConstructionInfo ci){ return new EthashGPUMiner(ci); }};
#endif
(void)_m;
(void)_remote;
(void)_recheckPeriod;
@ -479,6 +484,7 @@ private:
Farm rpc(client);
GenericFarm<EthashProofOfWork> f;
f.setSealers(sealers);
if (_m == MinerType::CPU)
f.start("cpu");
else if (_m == MinerType::GPU)

Loading…
Cancel
Save