Cannot query local node by tx without --trust-node #6060
Closed
Description
opened on 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
- query a local node with
cli query tx [txhash]
- observe the described behavior
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Metadata
Assignees
Labels
No labels
Activity