Skip to content

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

Closed
@gsora

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions