-
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
server: require the DLP bit for all incoming/outgoing connections #2500
Conversation
In this commit, we modify our default local feature bits to require the Data Loss Protection (DLP) feature to be active. Once full Static Channel Backups are implemented, if we connect to a peer that doesn't follow the DLP protocol, then the SCBs are useless, as we may not be able to recover funds. As a result, in prep for full SCB deployment, we'll now ensure that any peer we connect to, knows of the DLP bit. This could be a bit more relaxed and allow _connections_ to non-DLP peers, but reject channel requests to/from them. However, this implementation is much simpler.
We also need to modify |
Pushed up a commit to now disconnect the peers that don't have this new feature bit. Before we merge this, I want to refactor this area to be a bit more general so we have a single place in the |
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.
LGTM 🛰
@Roasbeef are you still planning to the refactoring here? |
Ideally yes. If y'all don't consider it a blocker, then we can have this land now, and I can follow up with a refactor+tests. |
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.
LGTM 🔑 can defer testing for another PR
I think that this merge has some issues, my node cannot bootstrap connections saying "unable to start peer: data loss protection required". |
In this commit, we modify our default local feature bits to require the
Data Loss Protection (DLP) feature to be active. Once full Static
Channel Backups are implemented, if we connect to a peer that doesn't
follow the DLP protocol, then the SCBs are useless, as we may not be
able to recover funds. As a result, in prep for full SCB deployment,
we'll now ensure that any peer we connect to, knows of the DLP bit. This
could be a bit more relaxed and allow connections to non-DLP peers,
but reject channel requests to/from them. However, this implementation is
much simpler.