예제 #1
0
        private string GetCapabilities(P2PNodeDetails nodeDetails)
        {
            if (nodeDetails.Capabilities == null || !nodeDetails.Capabilities.Any())
            {
                return("none");
            }

            return(string.Join("|", nodeDetails.Capabilities.Select(x => $"{x.ProtocolCode}v{x.Version}")));
        }
예제 #2
0
        public void ReportP2PInitializationEvent(Node node, P2PNodeDetails p2PNodeDetails)
        {
            INodeStats stats = GetOrAdd(node);

            stats.AddNodeStatsP2PInitializedEvent(p2PNodeDetails);
        }
예제 #3
0
 public void AddNodeStatsP2PInitializedEvent(P2PNodeDetails nodeDetails)
 {
     P2PNodeDetails = nodeDetails;
     Increment(NodeStatsEventType.P2PInitialized);
 }