Merge pull request #800 from ethcore/fixjsonrpc

Increase threads to num_cpus & fix author reporting
This commit is contained in:
Arkadiy Paronyan
2016-03-22 21:08:59 +01:00
6 changed files with 21 additions and 4 deletions

View File

@@ -232,8 +232,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()),
}
}