Fix is_mining.
This commit is contained in:
parent
5ccb172e73
commit
1eca9acffb
@ -131,7 +131,7 @@ impl Eth for EthClient {
|
|||||||
// TODO: return real value of mining once it's implemented.
|
// TODO: return real value of mining once it's implemented.
|
||||||
fn is_mining(&self, params: Params) -> Result<Value, Error> {
|
fn is_mining(&self, params: Params) -> Result<Value, Error> {
|
||||||
match params {
|
match params {
|
||||||
Params::None => Ok(Value::Bool(false)),
|
Params::None => to_value(&!self.hashrates.read().unwrap().is_empty()),
|
||||||
_ => Err(Error::invalid_params())
|
_ => Err(Error::invalid_params())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user