Skip to content
Unverified Commit e0c081db authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

network:bridge: fix peer_count metric (#3711)



The metric records the current protocol_version of the validator that
just connected with the peer_map.len(), which contains all peers that
connected, that has the effect the metric will be wrong since it won't
tell us how many peers we have connected per version because it will
always record the total number of peers

Fix this by counting by version inside peer_map, additionally because
that might be a bit heavier than len(), publish it only on-active
leaves.

---------

Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>
parent a2c9ab8c
Pipeline #460946 failed with stages
in 57 minutes and 45 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment