Skip to content

Commit

Permalink
(fixup) flagVotingPower123456
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Jul 28, 2022
1 parent 3c08605 commit feba108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions abci/cmd/abci-cli/abci-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var (
flagPersist string

// voting power for make validator_tx
flagVotingPower123456 int64
flagVotingPower int64
)

var RootCmd = &cobra.Command{
Expand Down Expand Up @@ -154,7 +154,7 @@ func addKVStoreFlags() {
}

func addPersistKVStoreMakeValSetChangeTxFlags() {
kvstoreCmd.PersistentFlags().Int64VarP(&flagVotingPower123456, "voting_power", "p", int64(10),
kvstoreCmd.PersistentFlags().Int64VarP(&flagVotingPower, "voting_power", "p", int64(10),
"voting power for ValSetChangeTx")
}

Expand Down Expand Up @@ -731,7 +731,7 @@ func cmdPersistKVStoreMakeValSetChangeTx(cmd *cobra.Command, args []string) erro
if err != nil {
panic(err)
}
pubStr, tx := kvstore.MakeValSetChangeTxAndMore(publicKey, flagVotingPower123456)
pubStr, tx := kvstore.MakeValSetChangeTxAndMore(publicKey, flagVotingPower)
{
fmt.Printf("DeliverTxSync: data=%s, tx=%s\n", pubStr, tx)
res, err := client.DeliverTxSync(types.RequestDeliverTx{Tx: []byte(tx)})
Expand Down

0 comments on commit feba108

Please sign in to comment.