Skip to content

Commit

Permalink
fix relayed node issue (#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 authored Feb 21, 2024
1 parent 2d8f67d commit a9ce842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/logic/relays.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func updateRelayNodes(relay string, oldNodes []string, newNodes []string) []mode

func RelayUpdates(currentNode, newNode *models.Node) bool {
relayUpdates := false
if servercfg.IsPro && newNode.IsRelay && len(newNode.RelayedNodes) > 0 {
if servercfg.IsPro && newNode.IsRelay {
if len(newNode.RelayedNodes) != len(currentNode.RelayedNodes) {
relayUpdates = true
} else {
Expand Down

0 comments on commit a9ce842

Please sign in to comment.