Skip to content

Commit cbf2385

Browse files
committed
Disable mainnet (for pre-release)
1 parent e15c04b commit cbf2385

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

avalanchego/config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,10 @@ func GetNodeConfig(v *viper.Viper) (node.Config, error) {
13371337
return node.Config{}, err
13381338
}
13391339

1340+
if nodeConfig.NetworkID == constants.FlareID || nodeConfig.NetworkID == constants.SongbirdID {
1341+
return node.Config{}, errors.New("mainnet is not supported")
1342+
}
1343+
13401344
// Database
13411345
nodeConfig.DatabaseConfig, err = getDatabaseConfig(v, nodeConfig.NetworkID)
13421346
if err != nil {

0 commit comments

Comments
 (0)