Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot query local node by tx without --trust-node #6060

Closed
4 tasks
gsora opened this issue Apr 23, 2020 · 4 comments
Closed
4 tasks

Cannot query local node by tx without --trust-node #6060

gsora opened this issue Apr 23, 2020 · 4 comments
Assignees

Comments

@gsora
Copy link
Contributor

gsora commented Apr 23, 2020

Summary of Bug

It is impossible to query a node running on localhost without supplying the --trust-node parameter:

$ cncli query tx BA0173D567F38F1A17AB8558DA2B34E655EA55133F3B47F5350423C169ACEC0E
ERROR: missing valid certifier to verify data from distrusted node

If --trust-node is present, the query is successful:

$ cncli query tx BA0173D567F38F1A17AB8558DA2B34E655EA55133F3B47F5350423C169ACEC0E --trust-node
height: 6980
txhash: BA0173D567F38F1A17AB8558DA2B34E655EA55133F3B47F5350423C169ACEC0E
codespace: ""
...rest of the output...

Being explicit about what node to query by using e.g. the --node=http://localhost:26657 flag does not vary the described outcome.

Version

Cosmos-SDK v0.38.3

Steps to Reproduce

  1. query a local node with cli query tx [txhash]
  2. observe the described behavior

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

@alessio does this have anything to do with the recent changes of Viper usage?

@alessio
Copy link
Contributor

alessio commented Apr 23, 2020

Nope, this is the v0.38.x series's reincarnation of #5964 (and only 0.38.x seems affected by this)

@alessio alessio added the T:Bug label Apr 23, 2020
@alessio alessio self-assigned this Apr 23, 2020
@alessio
Copy link
Contributor

alessio commented Apr 24, 2020

I think you aren't passing chain-id via flag nor via config file (you may check it: cncli config). That's why you need trust-node = true. @gsora can you confirm please?

@alessio alessio added the S:needs more info This bug can't be addressed until more information is provided by the reporter. label Apr 24, 2020
@alessio
Copy link
Contributor

alessio commented Jun 29, 2020

@gsora confirmed in a separate conversation that this #6060 (comment) is true. Hence closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants