-
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
[feature]: allow feature bits to be sent using peersrpc.UpdateNodeAnnouncement #7094
Comments
You probably want to also allow in config? |
Related: #5587 (comment) |
This is actually mostly addressed in #5587, I'm going to put up a PR to allow setting feature bit values in config because I think that's useful for more "permanent" use cases.
Do we want to update the API to add this restriction? As I read the current update code, we're allowed to set/unset features that are known to LND (provided dependencies remain valid). This would be a breaking change for the API, but I think it's pretty unlikely that people are using to to mess with defined protocol features? |
Hi guys! The spec will define a node announcement feature bit though. Is there any timeline for the extension of Best regards |
To interject, the LSPS0 proposal also requires an |
Picking this back up in #7568, will add the ability to configure LND with custom |
Is your feature request related to a problem? Please describe.
Today it's possible to create all sorts of meta/overlay protocols that hook into lnd using the various interceptors we have. However, none of these are able to currently advertise feature bits or custom TLVs in the node announcement message.
Describe the solution you'd like
Extend the new UpdateNodeAnnouncement RPC call to allow feature bits to be set.
Only feature bits that
lnd
doesn't know about and/or isn't setting should be allowed. Otherwise it would be possible for a user to create a node ann that would actually be rejected by other peers due to things like violating dependnacy constraints.The resposnse should tell the caller if their feature bits were able to be set or not, and the final set of feature bits that are now advertised.
With another small change, we can also enable custom TLV ranges to be set as well.
Describe alternatives you've considered
Only allow it in the config, but that wouldn't be that flexible.
The text was updated successfully, but these errors were encountered: