![]() |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
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. Pause until told to kickOff(). More... | |
| bool | submitProof (Solution const &_s) |
| Notes that the Miner found a solution. More... | |
| WorkPackage const & | work () const |
| void | accumulateHashes (unsigned _n) |
A miner - a member and adoptee of the Farm.
Definition at line 41 of file GenericMiner.h.
| using dev::eth::GenericMiner< PoW >::ConstructionInfo = std::pair<FarmFace*, unsigned> |
Definition at line 77 of file GenericMiner.h.
| using dev::eth::GenericMiner< PoW >::FarmFace = GenericFarmFace<PoW> |
Definition at line 76 of file GenericMiner.h.
| using dev::eth::GenericMiner< PoW >::Solution = typename PoW::Solution |
Definition at line 75 of file GenericMiner.h.
| using dev::eth::GenericMiner< PoW >::WorkPackage = typename PoW::WorkPackage |
Definition at line 74 of file GenericMiner.h.
|
inline |
Definition at line 79 of file GenericMiner.h.
|
inlinevirtual |
Definition at line 83 of file GenericMiner.h.
|
inlineprotected |
Definition at line 150 of file GenericMiner.h.
|
inline |
Definition at line 107 of file GenericMiner.h.
|
inline |
Definition at line 111 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. |
|
protectedpure virtual |
No work left to be done. Pause until told to kickOff().
|
inline |
Definition at line 109 of file GenericMiner.h.
|
inline |
Definition at line 87 of file GenericMiner.h.
|
inlineprotected |
Notes that the Miner found a solution.
| _s | The solution. |
Definition at line 135 of file GenericMiner.h.
|
inlineprotected |
Definition at line 148 of file GenericMiner.h.