Skip to content

Commit

Permalink
add ignored clients section
Browse files Browse the repository at this point in the history
  • Loading branch information
angaz committed Feb 6, 2025
1 parent f6856fb commit 2799cb2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/common/parse_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,11 @@ var funcs = []func([]string) (*Client, error){
handleLen7,
}

var ignoredClients = []string{
"ethereumjs/undefined",
"abc/xyz",
}

func ParseClientID(clientName *string) *Client {
if clientName == nil {
return nil
Expand All @@ -655,6 +660,12 @@ func ParseClientID(clientName *string) *Client {
return nil
}

for _, ignoredClient := range ignoredClients {
if strings.HasPrefix(name, ignoredClient) {
return nil
}
}

if strings.HasPrefix(name, "nimbus-eth1") && !strings.Contains(name, "/") {
client, err := handleNimbus(name)
if err != nil {
Expand Down

0 comments on commit 2799cb2

Please sign in to comment.