Fix author reporting. num_cpus for JSONRPC threads.

This commit is contained in:
Gav Wood
2016-03-22 19:12:17 +01:00
parent 7624bcf49e
commit 0e026ed11f
6 changed files with 21 additions and 6 deletions

View File

@@ -168,8 +168,8 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
// TODO: do not hardcode author.
fn author(&self, params: Params) -> Result<Value, Error> {
match params {
Params::None => to_value(&Address::new()),
_ => Err(Error::invalid_params())
Params::None => to_value(&take_weak!(self.miner).author()),
_ => Err(Error::invalid_params()),
}
}