-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
discovery+lnwire: add support for DNS host names in NodeAnnouncement msg #6337
Comments
Hi @Roasbeef can I be assigned to this? |
Hi @Roasbeef , I would like to give this a go too. I'm new to this repo and would like to help. Maybe pairing with @gabbyprecious ? Edit: after poking around, this looks to be over my head, for now. I will look for something else. |
We don't normally assign issues to external contributors. But if you want to "claim" something, you can always create a draft (!) pull request and link the issue in the description. That way anyone looking at the issue sees that someone is working on it. |
Is this the PR to add support for the spec change: BOLT 7: add gossip address descriptor type DNS hostname #911 ? |
@tvolk131 yep see the linked PR above ^ |
Hi @Roasbeef
|
No this is fixed now, we'll propagate new addrs that we don't yet understand. |
Today it isn't possible to advertise a proper hostname in the
NodeAnnouncement
message. Historically, we've gotten around this by adding a CLI option that allows users to specify a hostname that should periodically be queried to resolve a new IP to advertise. There exist a spec proposal to add a new address type to theNodeAnnouncement
message. With this implemented, we can actually remove our existing hack around this prior lack of protocol feature.Related to this spec addition is another proposal to add a websockets type. Turns out that most web browsers (read: Chrome) doesn't allow raw websockets (so no TLS layer), which means in practice, one is required to connect via a hostname in either case. As a result, implementing this also gives us a way to expose LN p2p connection over websockets, with the caveat that the node requires a hostname, or uses some existing TPC<->WS proxy.
Steps to Completion
lnwire.NodeAnnouncement
peersrpc.UpdateNodeAnnoncement
struct to allow dynamic config of this new fieldThe text was updated successfully, but these errors were encountered: