mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 01:38:04 +00:00
Fixed a couple of syncing issues (#5277)
* Don't queue duplicate blocks * Keep queue_blocks on restart
This commit is contained in:
@@ -556,6 +556,11 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
|
||||
self.sync.status().queued_blocks
|
||||
}
|
||||
|
||||
/// Number of processed blocks.
|
||||
pub fn num_processed_blocks(&self) -> usize {
|
||||
self.sync.num_processed_blocks()
|
||||
}
|
||||
|
||||
/// Number of active sync requests.
|
||||
pub fn num_sync_requests(&self) -> usize {
|
||||
self.sync.num_sync_requests()
|
||||
|
||||
Reference in New Issue
Block a user