We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d20a0 commit cd44e2dCopy full SHA for cd44e2d
api/v1_validators.go
@@ -3,6 +3,7 @@ package api
3
import (
4
"context"
5
"strconv"
6
+ "strings"
7
"sync"
8
"time"
9
@@ -81,7 +82,13 @@ func (app *ApiServer) updateNodes(ctx context.Context) {
81
82
})
83
}
84
app.validators.SetNodes(nodesList)
- rendezvous.Refresh(nodesList)
85
+ rendezvousNodes := make([]config.Node, 0, len(nodesList))
86
+ for _, n := range nodesList {
87
+ if strings.EqualFold(n.ServiceType, "validator") || strings.EqualFold(n.ServiceType, "content-node") {
88
+ rendezvousNodes = append(rendezvousNodes, n)
89
+ }
90
91
+ rendezvous.Refresh(rendezvousNodes)
92
93
94
func (app *ApiServer) v1Validators(c *fiber.Ctx) error {
0 commit comments