From e1c4ac2d742354c549c8eba25942d0b089ef4b62 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Fri, 24 Jul 2015 15:02:09 +0200 Subject: [PATCH] Set sealers in doFarm() --- ethminer/MinerAux.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index 65dd0111e..a378312ed 100644 --- a/ethminer/MinerAux.h +++ b/ethminer/MinerAux.h @@ -471,6 +471,11 @@ private: void doFarm(MinerType _m, string const& _remote, unsigned _recheckPeriod) { + map::SealerDescriptor> sealers; + sealers["cpu"] = GenericFarm::SealerDescriptor{&EthashCPUMiner::instances, [](GenericMiner::ConstructionInfo ci){ return new EthashCPUMiner(ci); }}; +#if ETH_ETHASHCL + sealers["opencl"] = GenericFarm::SealerDescriptor{&EthashGPUMiner::instances, [](GenericMiner::ConstructionInfo ci){ return new EthashGPUMiner(ci); }}; +#endif (void)_m; (void)_remote; (void)_recheckPeriod; @@ -479,6 +484,7 @@ private: Farm rpc(client); GenericFarm f; + f.setSealers(sealers); if (_m == MinerType::CPU) f.start("cpu"); else if (_m == MinerType::GPU)