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}"))); }
public void ReportP2PInitializationEvent(Node node, P2PNodeDetails p2PNodeDetails) { INodeStats stats = GetOrAdd(node); stats.AddNodeStatsP2PInitializedEvent(p2PNodeDetails); }
public void AddNodeStatsP2PInitializedEvent(P2PNodeDetails nodeDetails) { P2PNodeDetails = nodeDetails; Increment(NodeStatsEventType.P2PInitialized); }