39 _out << _p.
rate() <<
" H/s = " << _p.
hashes <<
" hashes / " << (double(_p.
ms) / 1000) <<
" s";
66 virtual bool submitProof(
Solution const& _p,
Miner* _finder) = 0;
103 else if (!_work && !!old)
112 unsigned index()
const {
return m_index; }
122 virtual void kickOff() = 0;
127 virtual void pause() = 0;
140 if (m_farm->submitProof(_s,
this))
157 uint64_t m_hashCount = 0;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
bool submitProof(Solution const &_s)
Notes that the Miner found a solution.
WorkPackage const & work() const
GenericMiner(ConstructionInfo const &_ci)
std::ostream & operator<<(std::ostream &_out, BlockHeader const &_bi)
virtual ~GenericFarmFace()
typename dev::eth::EthashProofOfWork::WorkPackage WorkPackage
uint64_t hashCount() const
void accumulateHashes(unsigned _n)
void setWork(WorkPackage const &_work=WorkPackage())
#define DEV_TIMED_ABOVE(S, MS)
std::pair< FarmFace *, unsigned > ConstructionInfo
std::lock_guard< std::mutex > Guard
Class for hosting one or more Miners.
uint64_t ms
Total number of milliseconds of mining thus far.
typename dev::eth::EthashProofOfWork::Solution Solution
uint64_t hashes
Total number of hashes computed.
typename EthashProofOfWork::Solution Solution
Describes the progress of a mining operation.
A miner - a member and adoptee of the Farm.
typename EthashProofOfWork::WorkPackage WorkPackage