IRISHUB-238 :add trust option for rest-server command

This commit is contained in:
HaoyangLiu 2018-08-30 15:08:10 +08:00
parent 703c643fc0
commit 5473771105

View File

@ -69,6 +69,7 @@ func ServeCommand(cdc *wire.Codec) *cobra.Command {
cmd.Flags().String(client.FlagChainID, "", "The chain ID to connect to")
cmd.Flags().String(client.FlagNode, "tcp://localhost:26657", "Address of the node to connect to")
cmd.Flags().Int(flagMaxOpenConnections, 1000, "The number of maximum open connections")
cmd.Flags().Bool(client.FlagTrustNode, false, "Whether trust connected full node")
return cmd
}