mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 10:27:59 +00:00
Fixed a couple of syncing issues (#5277)
* Don't queue duplicate blocks * Keep queue_blocks on restart
This commit is contained in:
@@ -207,6 +207,11 @@ impl<D> Peer<D> {
|
||||
self.network.num_connected_peers()
|
||||
}
|
||||
|
||||
/// Returns the number of processed blocks.
|
||||
pub fn num_processed_blocks(&self) -> usize {
|
||||
self.network.num_processed_blocks()
|
||||
}
|
||||
|
||||
/// Returns true if we have no peer.
|
||||
pub fn is_offline(&self) -> bool {
|
||||
self.num_peers() == 0
|
||||
|
||||
Reference in New Issue
Block a user