Expose height flag in all queries

This commit is contained in:
Ethan Frey
2017-10-25 19:14:28 +02:00
parent 3b7020520c
commit c4ead8b8a3
13 changed files with 75 additions and 32 deletions
@@ -23,7 +23,7 @@ func counterQueryCmd(cmd *cobra.Command, args []string) error {
prove := !viper.GetBool(commands.FlagTrustNode)
key := stack.PrefixedKey(counter.NameCounter, counter.StateKey())
h, err := query.GetParsed(key, &cp, prove)
h, err := query.GetParsed(key, &cp, query.GetHeight(), prove)
if err != nil {
return err
}