44 std::shared_ptr<GasPricer> _gpForAdoption,
45 std::string
const& _dbPath = std::string(),
84 mutable std::unordered_map<h256, std::pair<u256, std::chrono::steady_clock::time_point>>
m_externalRates;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
u256 hashrate() const
The hashrate...
EthashClient(ChainParams const &_params, int _networkID, p2p::Host *_host, std::shared_ptr< GasPricer > _gpForAdoption, std::string const &_dbPath=std::string(), WithExisting _forceAction=WithExisting::Trust, TransactionQueue::Limits const &_l=TransactionQueue::Limits{1024, 1024})
Trivial forwarding constructor.
EthashClient & asEthashClient(Interface &_c)
SharedMutex x_externalRates
bool shouldServeWork() const
The Host class Capabilities should be registered prior to startNetwork, since m_capabilities is not t...
std::tuple< h256, h256, h256 > getEthashWork()
Update to the latest transactions and get hash of the current block to be mined minus the nonce (the ...
bool submitEthashWork(h256 const &_mixHash, h64 const &_nonce)
Submit the proof for the proof-of-work.
std::pair< unsigned, unsigned > items() const
Get information on the items queued.
void submitExternalHashrate(u256 const &_rate, h256 const &_id)
void setShouldPrecomputeDAG(bool _precompute)
Enable/disable precomputing of the DAG for next epoch.
BlockQueue m_bq
Maintains a list of incoming blocks not yet on the blockchain (to be imported).
bool isMining() const
Are we mining now?
Main API hub for interfacing with Ethereum.
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
Main API hub for interfacing with Ethereum.
Describes the progress of a mining operation.
std::unordered_map< h256, std::pair< u256, std::chrono::steady_clock::time_point > > m_externalRates
bool remoteActive() const
Is there an active and valid remote worker?
boost::shared_mutex SharedMutex
u256 externalHashrate() const
WorkingProgress miningProgress() const
Check the progress of the mining.
DEV_SIMPLE_EXCEPTION(InvalidSealEngine)