-
Notifications
You must be signed in to change notification settings - Fork 113
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
config/migrate: Automatically configure external P2P addresses for validators #5410
Conversation
19cec16
to
b336056
Compare
b336056
to
1877c5b
Compare
1877c5b
to
b041f6f
Compare
b041f6f
to
1f4f23f
Compare
// Set P2P registration addresses if not set. | ||
if _, ok := m(m(newCfg["p2p"])["registration"])["addresses"]; !ok { | ||
mkSubMap(m(newCfg["p2p"]), "registration") | ||
m(m(newCfg["p2p"])["registration"])["addresses"] = []string{url.Hostname() + ":9200"} |
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.
Should this use the value from p2p.port
instead of 9200?
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.
Good idea, also refactored a bit since now the "external_address" is only needed for the "registartion.addresses" part.
1f4f23f
to
a15cc39
Compare
a15cc39
to
5f852bb
Compare
Codecov Report
@@ Coverage Diff @@
## master #5410 +/- ##
==========================================
+ Coverage 66.43% 66.87% +0.43%
==========================================
Files 533 533
Lines 56329 56348 +19
==========================================
+ Hits 37424 37680 +256
+ Misses 14499 14267 -232
+ Partials 4406 4401 -5
|
No description provided.