diff --git a/cmd/blockchaincmd/blockchain.go b/cmd/blockchaincmd/blockchain.go index 8d937ee27..54989cd6c 100644 --- a/cmd/blockchaincmd/blockchain.go +++ b/cmd/blockchaincmd/blockchain.go @@ -61,6 +61,6 @@ manage your Blockchain configurations and live deployments.`, // subnet changeOwner cmd.AddCommand(newChangeOwnerCmd()) // subnet changeWeight - cmd.AddCommand(newSetWeightCmd()) + cmd.AddCommand(newChangeWeightCmd()) return cmd } diff --git a/cmd/blockchaincmd/change_weight.go b/cmd/blockchaincmd/change_weight.go index 8943a9d9f..3ef0aa6f8 100644 --- a/cmd/blockchaincmd/change_weight.go +++ b/cmd/blockchaincmd/change_weight.go @@ -26,7 +26,7 @@ func newChangeWeightCmd() *cobra.Command { Long: `The blockchain changeWeight command changes the weight of a Subnet Validator. The Subnet has to be a Proof of Authority Subnet-Only Validator Subnet.`, - RunE: updateWeight, + RunE: setWeight, Args: cobrautils.ExactArgs(1), } networkoptions.AddNetworkFlagsToCmd(cmd, &globalNetworkFlags, true, addValidatorSupportedNetworkOptions) diff --git a/cmd/blockchaincmd/create.go b/cmd/blockchaincmd/create.go index 065d45557..5736b2e22 100644 --- a/cmd/blockchaincmd/create.go +++ b/cmd/blockchaincmd/create.go @@ -110,7 +110,7 @@ configuration, pass the -f flag.`, cmd.Flags().BoolVar(&createFlags.proofOfAuthority, "proof-of-authority", false, "use proof of authority for validator management") cmd.Flags().BoolVar(&createFlags.proofOfStake, "proof-of-stake", false, "(coming soon) use proof of stake for validator management") cmd.Flags().StringVar(&createFlags.poaValidatorManagerOwner, "poa-manager-owner", "", "EVM address that controls Validator Manager Owner (for Proof of Authority only)") - cmd.Flags().BoolVar(&nonSOV, "not-sov", false, "set to true if creating non-SOV (Subnet Only Validator) blockchain") + cmd.Flags().BoolVar(&sovereign, "sovereign", true, "set to false if creating non-sovereign blockchain") return cmd } @@ -195,7 +195,7 @@ func createBlockchainConfig(cmd *cobra.Command, args []string) error { return errors.New("flags --evm,--custom are mutually exclusive") } - if nonSOV { + if !sovereign { if createFlags.proofOfAuthority || createFlags.proofOfStake || createFlags.poaValidatorManagerOwner != "" { return errSOVFlagsOnly } @@ -232,7 +232,7 @@ func createBlockchainConfig(cmd *cobra.Command, args []string) error { sc := &models.Sidecar{} - if !nonSOV { + if sovereign { if err = promptValidatorManagementType(app, sc); err != nil { return err } @@ -242,7 +242,7 @@ func createBlockchainConfig(cmd *cobra.Command, args []string) error { } if vmType == models.SubnetEvm { - if !nonSOV { + if sovereign { if sc.PoA() { if createFlags.poaValidatorManagerOwner == "" { createFlags.poaValidatorManagerOwner, err = getValidatorContractManagerAddr() @@ -335,7 +335,7 @@ func createBlockchainConfig(cmd *cobra.Command, args []string) error { vmVersion, tokenSymbol, true, - nonSOV, + sovereign, ); err != nil { return err } @@ -365,7 +365,7 @@ func createBlockchainConfig(cmd *cobra.Command, args []string) error { customVMBuildScript, vmFile, tokenSymbol, - nonSOV, + sovereign, ); err != nil { return err }