Local network: safenode-manager local status --details show more peers connected than there are peers

Title says the issue.

Background
Local network started with

safenode-manager local run --count 20

Did a

safenode-manager local status --details

Results showed Connected peers: varying from 27 to 47 connected peers

Question
@joshuef How can a node connect to more peers than there are in the network?

7 Likes

It is an estimate based upon the routing table I think. I believe accuracy increases the more nodes there are.

cc @qi_ma for clarity here :bowing_man:

2 Likes

Yes. this is mainly regarding the entire network size, which, shall be more accurate with more estimated data collected and averaged.

The peer connected could be referred to:

  • the historic accumulated peers that connected to the node

OR

  • the current peers that the node is keeping the connection to

If the former, as it is a historic accumulated statistics, so in theory, it will be higher than the entire network size in long run.
If the latter, it could be something wrong, as the chance that current connected peers higher than the entire network size shall be very rare, as the estimation error shall not be that huge.

1 Like

Just to clarify the local network did not change in nodes nor size over the whole time it was operating.