X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=cmd%2Fbytomcli%2Fcommands%2Ftransaction.go;h=ef2a5feb444ae1ffd32113e9513096374db4e56c;hb=5cd220c63b4aabc1ff1acb024959134d5a4ab827;hp=c8e34483557b9f2a16dd4e4a629fc19156a0bd28;hpb=bc9bfc27a0efb7287c8f4970b146ef365e9cad5c;p=bytom%2Fbytom.git diff --git a/cmd/bytomcli/commands/transaction.go b/cmd/bytomcli/commands/transaction.go index c8e34483..ef2a5feb 100644 --- a/cmd/bytomcli/commands/transaction.go +++ b/cmd/bytomcli/commands/transaction.go @@ -27,8 +27,6 @@ func init() { signTransactionCmd.PersistentFlags().StringVarP(&password, "password", "p", "", "password of the account which sign these transaction(s)") signTransactionCmd.PersistentFlags().BoolVar(&pretty, "pretty", false, "pretty print json result") - signSubTransactionCmd.PersistentFlags().StringVarP(&password, "password", "p", "", "password of the account which sign these transaction(s)") - listTransactionsCmd.PersistentFlags().StringVar(&txID, "id", "", "transaction id") listTransactionsCmd.PersistentFlags().StringVar(&account, "account_id", "", "account id") listTransactionsCmd.PersistentFlags().BoolVar(&detail, "detail", false, "list transactions details") @@ -275,37 +273,6 @@ var estimateTransactionGasCmd = &cobra.Command{ }, } -var signSubTransactionCmd = &cobra.Command{ - Use: "sign-submit-transaction ", - Short: "Sign and Submit transaction templates with account password", - Args: cobra.ExactArgs(1), - PreRun: func(cmd *cobra.Command, args []string) { - cmd.MarkFlagRequired("password") - }, - Run: func(cmd *cobra.Command, args []string) { - template := txbuilder.Template{} - - err := json.Unmarshal([]byte(args[0]), &template) - if err != nil { - jww.ERROR.Println(err) - os.Exit(util.ErrLocalExe) - } - - var req = struct { - Password string `json:"password"` - Txs txbuilder.Template `json:"transaction"` - }{Password: password, Txs: template} - - jww.FEEDBACK.Printf("\n\n") - data, exitCode := util.ClientCall("/sign-submit-transaction", &req) - if exitCode != util.Success { - os.Exit(exitCode) - } - - printJSON(data) - }, -} - var getTransactionCmd = &cobra.Command{ Use: "get-transaction ", Short: "get the transaction by matching the given transaction hash",