Skip to content

Commit

Permalink
fix: bad comment
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jun 4, 2024
1 parent 1e4dc3f commit 351cba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions comm/communicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ func (c *Communicator) PeersStats() []*PeerStats {
// SameMajor returns true if the peer has the same major version
func sameMajor(appVersion, peerName string) bool {
versionRegex := regexp.MustCompile(`\d+\.\d+\.\d+`)
// Got a bad app version, so accept any peer
if appVersion == "" || !versionRegex.MatchString(appVersion) {
log.Info("bad app version", "appVersion", appVersion)
// Got a bad app version, so accept any peer
return true
}

Expand Down

0 comments on commit 351cba2

Please sign in to comment.