mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
Split peer slots between full and light nodes (#10688)
* Split peer slots between full and light nodes * Rustfmt * Oops, accidentally removed a comma * Remove else
This commit is contained in:
@@ -648,6 +648,11 @@ impl<B: BlockT> ChainSync<B> {
|
||||
self.downloaded_blocks
|
||||
}
|
||||
|
||||
/// Returns the current number of peers stored within this state machine.
|
||||
pub fn num_peers(&self) -> usize {
|
||||
self.peers.len()
|
||||
}
|
||||
|
||||
/// Handle a new connected peer.
|
||||
///
|
||||
/// Call this method whenever we connect to a new peer.
|
||||
|
||||
Reference in New Issue
Block a user