mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-03 17:31:07 +00:00
Get the correct number of connected peers in SyncState (#13700)
`Protocol` is not a reliable source for the information of connected peers because it doesn't have real-time information of the actual connectivity state because it's not resposible for accepting/rejecting connections and gets that information with delay from `SyncinEngine`.
This commit is contained in:
1 parent
4eae8dc1cd
commit
cef4b363c3
4 files changed
+7
-2
No files matched your search
@@ -76,7 +76,7 @@ impl<B: BlockT> InformantDisplay<B> {
|
||||
let best_number = info.chain.best_number;
|
||||
let best_hash = info.chain.best_hash;
|
||||
let finalized_number = info.chain.finalized_number;
|
||||
let num_connected_peers = net_status.num_connected_peers;
|
||||
let num_connected_peers = sync_status.num_connected_peers;
|
||||
let speed = speed::<B>(best_number, self.last_number, self.last_update);
|
||||
let total_bytes_inbound = net_status.total_bytes_inbound;
|
||||
let total_bytes_outbound = net_status.total_bytes_outbound;
|
||||
|
||||
Reference in new issue
Block a user