What makes "connections" count result different when I called "getinfo" API?

+1 vote
We're running several multichain test node.

When I tried to call the API "getinfo" to query total peer count to show the result at "multichain explorer",

but each node shows different result.

Could you explain me what make the result different?

And I want to know how to get total peer count using "multichain-cli {mychainname} getinfo", or "getpeerinfo" or else.

Thank you in advance.
asked Apr 3, 2018 by method76

1 Answer

+1 vote
Each node is connected to some of the other nodes, but every node is not necessarily connected to every other. So it is not unusual for different nodes to have different peer counts.

In a small network the reason for not having full connectivity is usually that nodes are behind firewalls. If two nodes are both behind a firewall with the peer-to-peer port blocked, then it is not possible for either to connect to the other.

In any event, I'm afraid there isn't currently an API command to gather up information about all nodes in the network automatically.
answered Apr 4, 2018 by MultiChain
...