-
Notifications
You must be signed in to change notification settings - Fork 368
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
[WIP] New ChannelId type, wrapper for [u8; 32] #2449
Conversation
"A unique 32-byte identifier for a channel.” I think the uniqueness derivation guarantees can be documented (both for legacy channels and new channel id dual funding). Our internal |
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2449 +/- ##
==========================================
+ Coverage 90.24% 90.26% +0.02%
==========================================
Files 106 106
Lines 55817 55830 +13
Branches 55817 55830 +13
==========================================
+ Hits 50370 50394 +24
+ Misses 5447 5436 -11
☔ View full report in Codecov by Sentry. |
Checks OK except per-commit check; squashing the commits would probably solve it. |
I haven't given much though about the exact meaning of uniqueness here, is it for the whole network, for one node, or for one node-pair.
I was thinking the same, but then I realized that this does not make much sense, as often the channel ID is received from the network in messages, and no context information is available there. This could be done only with a change in the protocol... (BTW, latest non-draft PR is #2485 ) |
I'm not sure about this - it may be the case that it's often not possible to know if a channel is v1 or v2 without context, but we should almost always know if a channel id is pre-funding or not because most messages are only allowed in a specific context. |
An example: we receive a |
Partial solution for #2408 .