More extractions from the Protocol struct (#2641)

* Pass the TransactionPool explicitly

* Extract finality_proof_provider

* Remove Protocol::connected_peers

* Add note and rename function

* Fix tests

* More test fixing

* Revert the WASM locks, I guess

* Add space

* Remove space
This commit is contained in:
Pierre Krieger
2019-05-23 12:07:51 +02:00
committed by GitHub
parent 563a67b8e4
commit c357854015
8 changed files with 103 additions and 74 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ pub fn connectivity<F: ServiceFactory>(spec: FactoryChainSpec<F>) {
service.network().add_reserved_peer(first_address.to_string()).expect("Error adding reserved peer");
}
network.run_until_all_full(|_index, service|
service.network().peers().len() == NUM_NODES as usize - 1
service.network().peers_debug_info().len() == NUM_NODES as usize - 1
);
network.runtime
};
@@ -215,7 +215,7 @@ pub fn connectivity<F: ServiceFactory>(spec: FactoryChainSpec<F>) {
address = node_id.clone();
}
network.run_until_all_full(|_index, service| {
service.network().peers().len() == NUM_NODES as usize - 1
service.network().peers_debug_info().len() == NUM_NODES as usize - 1
});
}
temp.close().expect("Error removing temp dir");