-
Notifications
You must be signed in to change notification settings - Fork 715
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
fix: use client/v2 v2.0.0-beta3; fix broken client.toml usage #3210
Conversation
e8fd320
to
94ed1f8
Compare
Is there any automated testing we have that would help us confirm whether this fixes the issue, or do we have to check manually? |
Tests are with Hypha, we're migrating parts of it here. Easiest way to test is to spin up a local gaia with non-default API port ( E.g.
Before the fix: gaiad status
// fails with node not available on 127.0.0.1:26657 [the default!] -- node is actually on 26658
gaiad status --node tcp://127.0.0.1:26658
// passes After the fix: gaiad status
// passes because `node = "tcp://localhost:26658"` from config.toml gets applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Administrative approval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the answer. That makes sense to me, so LGTM
* fix: use client/v2 v2.0.0-beta3; fix broken client.toml usage * Update root.go (cherry picked from commit 27da5e8)
…#3224) * fix: use client/v2 v2.0.0-beta3; fix broken client.toml usage * Update root.go (cherry picked from commit 27da5e8) Co-authored-by: MSalopek <[email protected]>
Fixes a bug discovered during testing.
The CLI would ignore the variables from
client.toml
which forced operators to always use--node <IP:port>
command line options.The fix consists of changing
root.go
cmd wiring and updatingcosmossdk.io/client/v2
v2.0.0-beta3. The application does not use depinject.Related: