Fabcoin Core
0.16.2
P2P Digital Currency
|
A miner - a member and adoptee of the Farm. More...
#include <GenericMiner.h>
Public Types | |
using | WorkPackage = typename PoW::WorkPackage |
using | Solution = typename PoW::Solution |
using | FarmFace = GenericFarmFace< PoW > |
using | ConstructionInfo = std::pair< FarmFace *, unsigned > |
Public Member Functions | |
GenericMiner (ConstructionInfo const &_ci) | |
virtual | ~GenericMiner () |
void | setWork (WorkPackage const &_work=WorkPackage()) |
uint64_t | hashCount () const |
void | resetHashCount () |
unsigned | index () const |
Protected Member Functions | |
virtual void | kickOff ()=0 |
Begin working on a given work package, discarding any previous work. More... | |
virtual void | pause ()=0 |
No work left to be done. More... | |
bool | submitProof (Solution const &_s) |
Notes that the Miner found a solution. More... | |
WorkPackage const & | work () const |
void | accumulateHashes (unsigned _n) |
Private Attributes | |
FarmFace * | m_farm = nullptr |
unsigned | m_index |
uint64_t | m_hashCount = 0 |
WorkPackage | m_work |
Mutex | x_work |
A miner - a member and adoptee of the Farm.
Definition at line 43 of file GenericMiner.h.
using dev::eth::GenericMiner< PoW >::ConstructionInfo = std::pair<FarmFace*, unsigned> |
Definition at line 79 of file GenericMiner.h.
using dev::eth::GenericMiner< PoW >::FarmFace = GenericFarmFace<PoW> |
Definition at line 78 of file GenericMiner.h.
using dev::eth::GenericMiner< PoW >::Solution = typename PoW::Solution |
Definition at line 77 of file GenericMiner.h.
using dev::eth::GenericMiner< PoW >::WorkPackage = typename PoW::WorkPackage |
Definition at line 76 of file GenericMiner.h.
|
inline |
Definition at line 81 of file GenericMiner.h.
|
inlinevirtual |
Definition at line 85 of file GenericMiner.h.
|
inlineprotected |
Definition at line 151 of file GenericMiner.h.
|
inline |
Definition at line 108 of file GenericMiner.h.
|
inline |
Definition at line 112 of file GenericMiner.h.
|
protectedpure virtual |
Begin working on a given work package, discarding any previous work.
_work | The package for which to find a solution. |
Implemented in dev::eth::EthashCPUMiner.
|
protectedpure virtual |
|
inline |
Definition at line 110 of file GenericMiner.h.
|
inline |
Definition at line 89 of file GenericMiner.h.
|
inlineprotected |
Notes that the Miner found a solution.
_s | The solution. |
Definition at line 136 of file GenericMiner.h.
|
inlineprotected |
Definition at line 149 of file GenericMiner.h.
|
private |
Definition at line 154 of file GenericMiner.h.
|
private |
Definition at line 157 of file GenericMiner.h.
|
private |
Definition at line 155 of file GenericMiner.h.
|
private |
Definition at line 159 of file GenericMiner.h.
|
mutableprivate |
Definition at line 160 of file GenericMiner.h.