Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable mainnet #2399

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cmd/blockchaincmd/add_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ func addValidator(_ *cobra.Command, args []string) error {

sovereign := sc.Sovereign

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

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 @@ -112,7 +112,7 @@
ErrMutuallyExlusiveKeyLedger = errors.New("key source flags --key, --ledger/--ledger-addrs are mutually exclusive")
ErrStoredKeyOnMainnet = errors.New("key --key is not available for mainnet operations")
errMutuallyExlusiveSubnetFlags = errors.New("--subnet-only and --subnet-id are mutually exclusive")
errNotSupportedOnMainnet = errors.New("deploying sovereign blockchain is currently not supported on Mainnet")

Check failure on line 115 in cmd/blockchaincmd/deploy.go

View workflow job for this annotation

GitHub Actions / Lint

var `errNotSupportedOnMainnet` is unused (unused)
)

// avalanche blockchain deploy
Expand Down Expand Up @@ -441,12 +441,6 @@
}
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
4 changes: 0 additions & 4 deletions cmd/blockchaincmd/remove_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,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
Loading