-
Notifications
You must be signed in to change notification settings - Fork 352
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
Problem: default gRPC init configuration bound to 0.0.0.0 #665
Problem: default gRPC init configuration bound to 0.0.0.0 #665
Conversation
Codecov Report
@@ Coverage Diff @@
## master #665 +/- ##
==========================================
+ Coverage 18.96% 22.34% +3.38%
==========================================
Files 68 69 +1
Lines 8021 8172 +151
==========================================
+ Hits 1521 1826 +305
+ Misses 5996 5803 -193
- Partials 504 543 +39
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
congrats on your first PR! 🎆
I think this doesn't solve the problem yet -- when I run chain-maind init
, it still has 0.0.0.0.
It'd probably need fixing here for the init command: https://github.com/crypto-org-chain/chain-main/blob/master/cmd/chain-maind/app/app.go#L92
Let me check~ |
Config the grpc.address and grpc-web.address to localhost.
I guess it should now support custom configuration. Please check https://github.com/cosmos/cosmos-sdk/blob/master/simapp/simd/cmd/root.go#L86 Test result:
|
app/docs/swagger-ui/swagger.yaml
Outdated
@@ -73,7 +73,7 @@ paths: | |||
example: 'on' | |||
rpc_address: | |||
type: string | |||
example: 'tcp://0.0.0.0:26657' | |||
example: 'tcp://127.0.0.1:26657' |
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.
I guess no need to change the rpc listen address, maybe undo this.
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.
Tried locally, it works 👍
I think you should undo the RPC listen-address change.
And fix the golang lint error.
I did not have the lint error, what error you mentioned? Do you mean in CI bot?
Let me check. |
Run gofmt -w can fix it
9f2b8cc
to
526f1db
Compare
Fixed @yihuang |
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.
LGTM
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.
looks all right -- may be good to add a changelog entry, but can fix that in a different PR
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
Close #586
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)