Fabcoin Core
0.16.2
P2P Digital Currency
|
Class for hosting one or more Miners. More...
#include <GenericMiner.h>
Public Types | |
using | WorkPackage = typename PoW::WorkPackage |
using | Solution = typename PoW::Solution |
using | Miner = GenericMiner< PoW > |
Public Member Functions | |
virtual | ~GenericFarmFace () |
virtual bool | submitProof (Solution const &_p, Miner *_finder)=0 |
Called from a Miner to note a WorkPackage has a solution. More... | |
Class for hosting one or more Miners.
Definition at line 50 of file GenericMiner.h.
using dev::eth::GenericFarmFace< PoW >::Miner = GenericMiner<PoW> |
Definition at line 55 of file GenericMiner.h.
using dev::eth::GenericFarmFace< PoW >::Solution = typename PoW::Solution |
Definition at line 54 of file GenericMiner.h.
using dev::eth::GenericFarmFace< PoW >::WorkPackage = typename PoW::WorkPackage |
Definition at line 53 of file GenericMiner.h.
|
inlinevirtual |
Definition at line 57 of file GenericMiner.h.
|
pure virtual |
Called from a Miner to note a WorkPackage has a solution.
_p | The solution. |
_wp | The WorkPackage that the Solution is for; this will be reset if the work is accepted. |
_finder | The miner that found it. |
Implemented in dev::eth::GenericFarm< PoW >, and dev::eth::GenericFarm< dev::eth::EthashProofOfWork >.