Skip to content

Commit fa8231f

Browse files
committed
add back name check
1 parent 5f6b8d8 commit fa8231f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/cmd/server/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"encoding/json"
55
"errors"
6+
"fmt"
67
"os"
78

89
"github.com/ava-labs/avalanchego/utils/constants"
@@ -87,10 +88,9 @@ func (c *config) validate() error {
8788
return errors.New("network name not provided")
8889
}
8990

90-
// TODO: Re-enable network name validation once we use go-flare's avalanchego fork
91-
// if _, err := constants.NetworkID(c.NetworkName); err != nil {
92-
// return fmt.Errorf("network name %q not mapping to any known network ID", c.NetworkName)
93-
// }
91+
if _, err := constants.NetworkID(c.NetworkName); err != nil {
92+
return fmt.Errorf("network name %q not mapping to any known network ID", c.NetworkName)
93+
}
9494

9595
if c.GenesisBlockHash == "" {
9696
return errGenesisBlockRequired

server/docker/docker-compose.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)