Skip to content

Commit 28134bf

Browse files
committed
chore: API sync; only count authenticated outbound nodes
1 parent d4a0c5c commit 28134bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stackslib/src/net/p2p.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,9 @@ impl PeerNetwork {
841841
) -> usize {
842842
let mut count = 0;
843843
for (_, convo) in self.peers.iter() {
844+
if !convo.is_authenticated() {
845+
continue;
846+
}
844847
if !convo.is_outbound() {
845848
continue;
846849
}
@@ -4158,7 +4161,7 @@ impl PeerNetwork {
41584161
chainstate,
41594162
sortdb,
41604163
stacker_db_configs,
4161-
self.connection_opts.num_neighbors,
4164+
&self.connection_opts,
41624165
)?;
41634166
Ok(())
41644167
}

0 commit comments

Comments
 (0)