-
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
watchtowers: warn or disallow users from connecting the the wt server running on the same node as the wtclient #5522
Comments
Saw that point 2 is also addressed here: #5361 |
Hi @xanoni ! First of all, good point: there should definitely be a warning or it should strictly disallow users from connecting to their own binary. Secondly, the reason for the main node ID not being used is to maintain privacy. We want to be able to use a watch tower without giving away what our main node ID is. |
Please I would like to work on this issue |
@ellemouton I need your help, I tried to implement this but I'm not able to test my changes as my wtclient add call gets stuck. |
@anibilthare - it just looks like your node isnt synced. If you are on regtest, try mining a few blocs (also just for future: if you want to share a really large piece of text like the config file above, consider adding a link to the text instead as it takes a lot of space on this page) |
Hi, Thanks. Yeah mining worked. Thanks. Yeah I'll keep that in mind. |
Background
I noticed that I can connect a node to its own watchtower, and it even starts backing up. Maybe we should warn users somehow that this is not how it's supposed to be done?
When I first set up watchtowers I didn't realize that the PubKey / onion address was different from the actual LND node itself ... however, it still let me connect and
lncli wtclient towers
shows them as valid watchtowers ... wouldn't it be better if the client rejected pubkeys/addresses that are not watchtowers, or at least indicate that something is broken?Thank you (leaving the stuff below so the bot doesn't punish me for ignoring the template).
Your environment
lnd
uname -a
on *Nix)btcd
,bitcoind
, or other backendSteps to reproduce
Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
The text was updated successfully, but these errors were encountered: