Merge pull request #1123 from ethcore/fixstyling

Fix styling - don't mix spaces with tabs!!!
This commit is contained in:
Arkadiy Paronyan 2016-05-22 13:41:41 +02:00
commit f738f5e032

View File

@ -41,12 +41,13 @@ use util::keys::store::AccountProvider;
use serde;
/// Eth rpc implementation.
pub struct EthClient<C, S, A, M, EM>
where C: BlockChainClient,
pub struct EthClient<C, S, A, M, EM> where
C: BlockChainClient,
S: SyncProvider,
A: AccountProvider,
M: MinerService,
EM: ExternalMinerService {
client: Weak<C>,
sync: Weak<S>,
accounts: Weak<A>,
@ -55,8 +56,8 @@ pub struct EthClient<C, S, A, M, EM>
seed_compute: Mutex<SeedHashCompute>,
}
impl<C, S, A, M, EM> EthClient<C, S, A, M, EM>
where C: BlockChainClient,
impl<C, S, A, M, EM> EthClient<C, S, A, M, EM> where
C: BlockChainClient,
S: SyncProvider,
A: AccountProvider,
M: MinerService,
@ -214,8 +215,8 @@ fn from_params_default_third<F1, F2>(params: Params) -> Result<(F1, F2, BlockNum
}
}
impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
where C: BlockChainClient + 'static,
impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM> where
C: BlockChainClient + 'static,
S: SyncProvider + 'static,
A: AccountProvider + 'static,
M: MinerService + 'static,
@ -252,7 +253,6 @@ 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(&take_weak!(self.miner).author()),
@ -260,7 +260,6 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
}
}
// TODO: return real value of mining once it's implemented.
fn is_mining(&self, params: Params) -> Result<Value, Error> {
match params {
Params::None => to_value(&self.external_miner.is_mining()),
@ -268,7 +267,6 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
}
}
// TODO: return real hashrate once we have mining
fn hashrate(&self, params: Params) -> Result<Value, Error> {
match params {
Params::None => to_value(&self.external_miner.hashrate()),
@ -550,8 +548,8 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
}
/// Eth filter rpc implementation.
pub struct EthFilterClient<C, M>
where C: BlockChainClient,
pub struct EthFilterClient<C, M> where
C: BlockChainClient,
M: MinerService {
client: Weak<C>,
@ -559,8 +557,8 @@ pub struct EthFilterClient<C, M>
polls: Mutex<PollManager<PollFilter>>,
}
impl<C, M> EthFilterClient<C, M>
where C: BlockChainClient,
impl<C, M> EthFilterClient<C, M> where
C: BlockChainClient,
M: MinerService {
/// Creates new Eth filter client.
@ -573,8 +571,8 @@ impl<C, M> EthFilterClient<C, M>
}
}
impl<C, M> EthFilter for EthFilterClient<C, M>
where C: BlockChainClient + 'static,
impl<C, M> EthFilter for EthFilterClient<C, M> where
C: BlockChainClient + 'static,
M: MinerService + 'static {
fn new_filter(&self, params: Params) -> Result<Value, Error> {