mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 19:01:02 +00:00
Fixed a couple of syncing issues (#5277)
* Don't queue duplicate blocks * Keep queue_blocks on restart
This commit is contained in:
@@ -375,6 +375,11 @@ 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()
|
||||
}
|
||||
|
||||
/// Number of active sync requests.
|
||||
pub fn num_sync_requests(&self) -> usize {
|
||||
self.network_service.user_protocol().num_sync_requests()
|
||||
|
||||
Reference in New Issue
Block a user