mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-18 16:25:40 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user