Skip to content

Commit

Permalink
remove flag (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond authored Nov 21, 2024
1 parent 68ec83a commit 162edf1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/blockchaincmd/add_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ var (
disableOwnerAddr string
rpcURL string
aggregatorLogLevel string
forcePoS bool
delegationFee uint16

errNoSubnetID = errors.New("failed to find the subnet ID for this subnet, has it been deployed/created on this network?")
Expand Down Expand Up @@ -116,7 +115,6 @@ Testnet or Mainnet.`,
cmd.Flags().StringSliceVar(&subnetAuthKeys, "subnet-auth-keys", nil, "(for non sovereign blockchain) control keys that will be used to authenticate add validator tx")
cmd.Flags().StringVar(&outputTxPath, "output-tx-path", "", "(for non sovereign blockchain) file path of the add validator tx")
cmd.Flags().BoolVar(&waitForTxAcceptance, "wait-for-tx-acceptance", true, "(for non sovereign blockchain) just issue the add validator tx, without waiting for its acceptance")
cmd.Flags().BoolVar(&forcePoS, "pos", false, "(PoS only) force validator initialization as PoS validator")
cmd.Flags().Uint64Var(&stakeAmount, "stake-amount", 0, "(PoS only) amount of tokens to stake")
cmd.Flags().Uint16Var(&delegationFee, "delegation-fee", 100, "(PoS only) delegation fee (in bips)")

Expand Down Expand Up @@ -264,7 +262,7 @@ func CallAddValidator(
return fmt.Errorf("private key for Validator manager owner %s is not found", sc.ValidatorManagerOwner)
}

pos := sc.PoS() || forcePoS
pos := sc.PoS()

if pos {
// should take input prior to here for stake amount, delegation fee, and min stake duration
Expand Down

0 comments on commit 162edf1

Please sign in to comment.