Skip to content

Commit

Permalink
Enable mainnet (#2399)
Browse files Browse the repository at this point in the history
* enable mainnet

* clarify prompt

---------

Signed-off-by: sukantoraymond <[email protected]>
  • Loading branch information
sukantoraymond authored Dec 10, 2024
1 parent 942afa1 commit 55e1d26
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
1 change: 1 addition & 0 deletions cmd/blockchaincmd/add_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func addValidator(_ *cobra.Command, args []string) error {
if err := prompts.ValidateNodeID(nodeIDStr); err != nil {
return err
}

if sovereign && publicKey == "" && pop == "" {
publicKey, pop, err = promptProofOfPossession(true, true)
if err != nil {
Expand Down
4 changes: 0 additions & 4 deletions cmd/blockchaincmd/change_weight.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ func setWeight(_ *cobra.Command, args []string) error {
return err
}

if network.Kind == models.Mainnet && sc.Sovereign {
return errNotSupportedOnMainnet
}

if outputTxPath != "" {
if _, err := os.Stat(outputTxPath); err == nil {
return fmt.Errorf("outputTxPath %q already exists", outputTxPath)
Expand Down
6 changes: 0 additions & 6 deletions cmd/blockchaincmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,6 @@ func deployBlockchain(cmd *cobra.Command, args []string) error {
}
clusterNameFlagValue = globalNetworkFlags.ClusterName

if !simulatedPublicNetwork() {
if network.Kind == models.Mainnet && sidecar.Sovereign {
return errNotSupportedOnMainnet
}
}

isEVMGenesis, validationErr, err := app.HasSubnetEVMGenesis(chain)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion cmd/blockchaincmd/prompt_genesis_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func getValidatorContractManagerAddr() (string, error) {
"",
models.UndefinedNetwork,
prompts.EVMFormat,
"Enter address",
"Enter address (C-Chain address)",
)
}

Expand Down
4 changes: 0 additions & 4 deletions cmd/blockchaincmd/remove_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ func removeValidator(_ *cobra.Command, args []string) error {
}
network.HandlePublicNetworkSimulation()

if sc.Sovereign && network.Kind == models.Mainnet {
return errNotSupportedOnMainnet
}

if !sc.Sovereign {
if outputTxPath != "" {
return errors.New("--output-tx-path flag cannot be used for non-SOV (Subnet-Only Validators) blockchains")
Expand Down

0 comments on commit 55e1d26

Please sign in to comment.