-
Notifications
You must be signed in to change notification settings - Fork 159
feat: add support for zetaclient external DNS name #4234
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
864742b
add support for external DNS name
ws4charlie 8f06edb
add changelog entry
ws4charlie 4060372
Merge branch 'develop' of https://github.com/zeta-chain/node into fea…
ws4charlie 31e5065
Merge branch 'develop' into feat-support-tss-externalDNS
ws4charlie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -207,8 +207,8 @@ func NewServer( | |
| return nil, errors.New("tss password is empty") | ||
| case privateKey == nil: | ||
| return nil, errors.New("private key is nil") | ||
| case cfg.PublicIP == "": | ||
| logger.Warn().Msg("public IP is empty") | ||
| case cfg.PublicIP == "" && cfg.PublicDNS == "": | ||
| logger.Warn().Msg("no public IP or DNS is provided") | ||
| } | ||
|
Comment on lines
+210
to
212
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Require at least one of PublicIP/PublicDNS; fail fast. Starting TSS without an externally reachable address will produce unreachable peers. Make this a hard error instead of a warning. - case cfg.PublicIP == "" && cfg.PublicDNS == "":
- logger.Warn().Msg("no public IP or DNS is provided")
+ case cfg.PublicIP == "" && cfg.PublicDNS == "":
+ return nil, errors.New("no public IP or DNS provided; set --public-ip or --public-dns")Also good to log both when set: logger.Info().Str("external_ip", cfg.PublicIP).Str("external_dns", cfg.PublicDNS).Msg("tss external addressing")Also applies to: 228-229 🤖 Prompt for AI Agents |
||
|
|
||
| tssPath, err := resolveTSSPath(cfg.TssPath, logger) | ||
|
|
@@ -225,6 +225,7 @@ func NewServer( | |
| PreParamTimeout: 5 * time.Minute, | ||
| }, | ||
| ExternalIP: cfg.PublicIP, | ||
| ExternalDNS: cfg.PublicDNS, | ||
| Port: Port, | ||
| BootstrapPeers: bootstrapPeers, | ||
| WhitelistedPeers: whitelistPeers, | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.