File tree Expand file tree Collapse file tree 4 files changed +8
-30
lines changed Expand file tree Collapse file tree 4 files changed +8
-30
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,15 @@ use super::super::errors::{self, account_provider};
2929use super :: super :: traits:: Account ;
3030use super :: super :: types:: { SendTransactionResult , UnsignedTransaction } ;
3131
32- pub struct AccountClient < C , M >
33- where
34- C : EngineInfo + MiningBlockChainClient + AccountData ,
35- M : MinerService , {
32+ pub struct AccountClient < C , M > {
3633 account_provider : Arc < AccountProvider > ,
3734 client : Arc < C > ,
3835 miner : Arc < M > ,
3936}
4037
4138impl < C , M > AccountClient < C , M >
4239where
43- C : EngineInfo + MiningBlockChainClient + AccountData ,
44- M : MinerService ,
40+ C : EngineInfo ,
4541{
4642 pub fn new ( account_provider : Arc < AccountProvider > , client : Arc < C > , miner : Arc < M > ) -> Self {
4743 AccountClient {
Original file line number Diff line number Diff line change @@ -45,10 +45,7 @@ use super::super::errors;
4545use super :: super :: traits:: Devel ;
4646use super :: super :: types:: { TPSTestOption , TPSTestSetting } ;
4747
48- pub struct DevelClient < C , M >
49- where
50- C : DatabaseClient + EngineInfo + EngineClient + MiningBlockChainClient ,
51- M : MinerService , {
48+ pub struct DevelClient < C , M > {
5249 client : Arc < C > ,
5350 db : Arc < KeyValueDB > ,
5451 miner : Arc < M > ,
5754
5855impl < C , M > DevelClient < C , M >
5956where
60- C : DatabaseClient + EngineInfo + EngineClient + MiningBlockChainClient ,
61- M : MinerService ,
57+ C : DatabaseClient ,
6258{
6359 pub fn new ( client : Arc < C > , miner : Arc < M > , block_sync : Option < EventSender < BlockSyncEvent > > ) -> Self {
6460 let db = client. database ( ) ;
Original file line number Diff line number Diff line change @@ -27,19 +27,12 @@ use super::super::errors;
2727use super :: super :: traits:: Mempool ;
2828use super :: super :: types:: PendingTransactions ;
2929
30- pub struct MempoolClient < C , M >
31- where
32- C : MiningBlockChainClient + EngineInfo ,
33- M : MinerService , {
30+ pub struct MempoolClient < C , M > {
3431 client : Arc < C > ,
3532 miner : Arc < M > ,
3633}
3734
38- impl < C , M > MempoolClient < C , M >
39- where
40- C : MiningBlockChainClient + EngineInfo ,
41- M : MinerService ,
42- {
35+ impl < C , M > MempoolClient < C , M > {
4336 pub fn new ( client : Arc < C > , miner : Arc < M > ) -> Self {
4437 MempoolClient {
4538 client,
Original file line number Diff line number Diff line change @@ -26,19 +26,12 @@ use super::super::errors;
2626use super :: super :: traits:: Miner ;
2727use super :: super :: types:: Work ;
2828
29- pub struct MinerClient < C , M >
30- where
31- C : MiningBlockChainClient + EngineClient + EngineInfo ,
32- M : MinerService , {
29+ pub struct MinerClient < C , M > {
3330 client : Arc < C > ,
3431 miner : Arc < M > ,
3532}
3633
37- impl < C , M > MinerClient < C , M >
38- where
39- C : MiningBlockChainClient + EngineClient + EngineInfo ,
40- M : MinerService ,
41- {
34+ impl < C , M > MinerClient < C , M > {
4235 pub fn new ( client : Arc < C > , miner : Arc < M > ) -> Self {
4336 Self {
4437 client,
You can’t perform that action at this time.
0 commit comments