From d4b0e5baaba67aba376ac4087d685b1f2ba32b88 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 10 Sep 2020 19:36:49 +0100 Subject: [PATCH] client: fix validator's command pagination default page (#7278) Fix issue encountered in the stargate-2 testnet: Error: RPC error -32603 - Internal error: page should be within [1, 1] range, given 0 Co-authored-by: Helder Moreira Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- client/rpc/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/validators.go b/client/rpc/validators.go index 572f2005a5..26f9aae27b 100644 --- a/client/rpc/validators.go +++ b/client/rpc/validators.go @@ -56,7 +56,7 @@ func ValidatorCommand() *cobra.Command { cmd.Flags().StringP(flags.FlagNode, "n", "tcp://localhost:26657", "Node to connect to") cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)") - cmd.Flags().Int(flags.FlagPage, 0, "Query a specific page of paginated results") + cmd.Flags().Int(flags.FlagPage, rest.DefaultPage, "Query a specific page of paginated results") cmd.Flags().Int(flags.FlagLimit, 100, "Query number of results returned per page") return cmd