Struct ethcore::miner::ExternalMiner
[−]
[src]
pub struct ExternalMiner { /* fields omitted */ }
External Miner.
Methods
impl ExternalMiner
[src]
fn new(hashrates: Arc<Mutex<HashMap<H256, (Instant, U256)>>>) -> Self
Creates new external miner with prefilled hashrates.
Trait Implementations
impl Default for ExternalMiner
[src]
impl ExternalMinerService for ExternalMiner
[src]
fn submit_hashrate(&self, hashrate: U256, id: H256)
Submit hashrate for given miner.
fn hashrate(&self) -> U256
Total hashrate.