Use number of downloaded blocks for test (#6234)

This commit is contained in:
Arkadiy Paronyan
2020-06-04 23:41:48 +02:00
committed by GitHub
parent 7f1f811cf9
commit 31921c4eb9
5 changed files with 18 additions and 20 deletions
+3 -3
View File
@@ -390,9 +390,9 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkWorker<B, H> {
self.network_service.user_protocol().num_queued_blocks()
}
/// Returns the number of processed blocks.
pub fn num_processed_blocks(&self) -> usize {
self.network_service.user_protocol().num_processed_blocks()
/// Returns the number of downloaded blocks.
pub fn num_downloaded_blocks(&self) -> usize {
self.network_service.user_protocol().num_downloaded_blocks()
}
/// Number of active sync requests.