Skip to content
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

host names for relays aren't working #51

Closed
robinboening opened this issue Jul 10, 2022 · 1 comment
Closed

host names for relays aren't working #51

robinboening opened this issue Jul 10, 2022 · 1 comment

Comments

@robinboening
Copy link
Contributor

robinboening commented Jul 10, 2022

After seeing a recent commit message mentioning support for host names, I considered switching from IP to hostname. I ran the registration certificate generator script and wondered why the IP was echoed anyway. So I started digging.

Commit 427e01d claims to introduce support for host names, but as far as I can see it only collects the information but does not apply the information when it comes to generate the certificate using the cardano-cli.

In the current master you can see the cli still receives the --pool-relay-ipv4 ${PUBLIC_RELAY_IP} no matter if PUBLIC_RELAY_HOST was provided or not
https://github.com/abracadaniel/cardano-pool-docker/blob/master/scripts/generate_registration_certificates#L125

Another thing I noticed is that, even though its not used later, the option "--pool-relay-host ${PUBLIC_RELAY_HOST}" defined on this line https://github.com/abracadaniel/cardano-pool-docker/blob/master/scripts/generate_registration_certificates#L90 might not be correct. cardano-cli stake-pool registration-certificate --help shows following options available (--pool-relay-host does not exist)

  --pool-relay-ipv4 STRING The stake pool relay's IPv4 address
  --pool-relay-ipv6 STRING The stake pool relay's IPv6 address
  --pool-relay-port INT    The stake pool relay's port
  --single-host-pool-relay STRING
                           The stake pool relay's DNS name that corresponds to
                           an A or AAAA DNS record
  --pool-relay-port INT    The stake pool relay's port
  --multi-host-pool-relay STRING
                           The stake pool relay's DNS name that corresponds to
                           an SRV DNS record
@abracadaniel
Copy link
Owner

nice, thank you for pointing this out. I have pushed a fix for it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants