Remove --select in block command (#2060)

Closes #1968.
This commit is contained in:
Matthew Slipper
2018-08-21 20:53:16 -04:00
committed by Rigel
parent 204762b2a1
commit 3413a2bff1
2 changed files with 1 additions and 6 deletions
-6
View File
@@ -12,10 +12,6 @@ import (
"github.com/spf13/cobra"
)
const (
flagSelect = "select"
)
//BlockCommand returns the verified block data for a given heights
func BlockCommand() *cobra.Command {
cmd := &cobra.Command{
@@ -27,7 +23,6 @@ func BlockCommand() *cobra.Command {
cmd.Flags().StringP(client.FlagNode, "n", "tcp://localhost:26657", "Node to connect to")
// TODO: change this to false when we can
cmd.Flags().Bool(client.FlagTrustNode, true, "Don't verify proofs for responses")
cmd.Flags().StringSlice(flagSelect, []string{"header", "tx"}, "Fields to return (header|txs|results)")
return cmd
}
@@ -38,7 +33,6 @@ func getBlock(cliCtx context.CLIContext, height *int64) ([]byte, error) {
return nil, err
}
// TODO: actually honor the --select flag!
// header -> BlockchainInfo
// header, tx -> Block
// results -> BlockResults