Fix is_mining.

This commit is contained in:
Gav Wood 2016-03-01 02:33:41 +01:00
parent 5ccb172e73
commit 1eca9acffb

View File

@ -131,7 +131,7 @@ impl Eth for EthClient {
// TODO: return real value of mining once it's implemented.
fn is_mining(&self, params: Params) -> Result<Value, Error> {
match params {
Params::None => Ok(Value::Bool(false)),
Params::None => to_value(&!self.hashrates.read().unwrap().is_empty()),
_ => Err(Error::invalid_params())
}
}