Cosmos-sdk: gaiacli query returns error in all usage

Created on 9 Nov 2018  路  10Comments  路  Source: cosmos/cosmos-sdk

Summary of Bug

gaiacli query * is returning error for validators who have already bonded.

Steps to Reproduce

  • Join a node to the gaia-9000 testnet
  • gaiacli tx create-validator to create your validator
  • Run gaiacli query signing-info $(gaiad tendermint show-validator) --chain-id gaia-9000
  • See the error:
ERROR: Invalid commit -- insufficient old voting power: got 200, needed 267

For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned
bug

All 10 comments

This can be overridden via the --trust-node option that disables light client checks.

Mhmmm, this might be tricky. I cannot reproduce this on the latest develop running a localnet. I can, however, reproduce the following when running: gaiacli query signing-info

ERROR: failed to prove merkle proof: expected 0 args, got 1

I'm not sure the two are related though.

Per @cwgoes this error is likely light client verification related and will require a tendermint change.

Which error exactly? Care to shed some more light here @cwgoes ?

This one: ERROR: Invalid commit -- insufficient old voting power: got 200, needed 267 (from the original post).

Also, we should communicate these kinds of errors better to the CLI user.

I think the reason why we can't replicated this on local testnets is because the local testnet doesn't have a dynamic validator set.

What would it take have a testnet with a dynamic validator set?

cc @greg-szabo @mircea-c

This should be moved to Tendermint, it's not an SDK issue. The relevant error is in types/validator_set.go - https://github.com/tendermint/tendermint/blob/master/types/validator_set.go#L306.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cwgoes picture cwgoes  路  3Comments

rigelrozanski picture rigelrozanski  路  3Comments

ValarDragon picture ValarDragon  路  3Comments

rigelrozanski picture rigelrozanski  路  3Comments

cwgoes picture cwgoes  路  3Comments