Skip to content

Commit c9feecb

Browse files
committed
Update the UserAgent to align with industry standard naming
- The industry standard for agent names is to prefix and subfix with / to seperate sections of the agent. - As we are optimizing and preparing for a good Bitcoin compatible node, this was decided to change from the previous format.
1 parent 6450bc3 commit c9feecb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Blockcore/Connection/ConnectionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public ConnectionManager(IDateTimeProvider dateTimeProvider,
134134
this.disconnectedPerfCounter = new PerformanceCounter();
135135

136136
this.Parameters.Version = this.NodeSettings.Network.Consensus.ConsensusFactory.Protocol.ProtocolVersion;
137-
this.Parameters.UserAgent = $"{this.ConnectionSettings.Agent}:{versionProvider.GetVersion()}({this.Network.CoinTicker};{this.Parameters.Version})";
137+
this.Parameters.UserAgent = $"/{this.ConnectionSettings.Agent}:{versionProvider.GetVersion()}({this.Network.CoinTicker};{this.Parameters.Version})/";
138138

139139
nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component, this.GetType().Name, 1100);
140140
}

0 commit comments

Comments
 (0)