File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
33import (
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
You can’t perform that action at this time.
0 commit comments