-
Notifications
You must be signed in to change notification settings - Fork 415
Use inbound SCID alias for blinded path creation #3902
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
Conversation
When we generate a compact blinded path to ourselves, we currently use the real SCID of our channels to tell our peers where to forward to. This is fine for short-lived blinded paths where we expect the channel to still be around, but post-splicing this may spuriously invalidate blinded paths just because we spliced. Instead, here, we default to using inbound SCID aliases where possible. We also avoid one more reference to the channel's internal `FundingContext` in `channelmanager.rs`.
I've assigned @tankyleo as a reviewer! |
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, but regarding "We also avoid one more reference to the channel's
internal FundingContext
in channelmanager.rs
.", mind sharing some context on why this is an improvement?
|
Ah, I have to admit I also remembered that context when reviewing #3881 afterwards, as we try to reduce the occurrences of |
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 as long as we are positive nodes in the blinded path will not complain that we've given them an alias and not the real scid - I don't really see this explicitly written down in the spec, but maybe it is implied ?
I assume its fine (the peer told us its an alias for the channel!), but we should probably update the spec to ensure this. Do you mind tackling that with a quick spec PR? |
When we generate a compact blinded path to ourselves, we currently use the real SCID of our channels to tell our peers where to forward to. This is fine for short-lived blinded paths where we expect the channel to still be around, but post-splicing this may spuriously invalidate blinded paths just because we spliced.
Instead, here, we default to using inbound SCID aliases where possible. We also avoid one more reference to the channel's internal
FundingContext
inchannelmanager.rs
.