Skip to content
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 enum #2456

Closed
wants to merge 3 commits into from

Conversation

optout21
Copy link
Contributor

@optout21 optout21 commented Jul 26, 2023

Fixes #2408 . Introduces a new ChannelId enum, with two variants, for normal funding-tx-based and temporary ID, both wrapper around 32-byte data.

TODO:

  • Finalize naming (common case is now called FundingTxBased)
  • Determine how it affects APIs, uses, backward-compatibility
  • How to preserve the variant at serialization? (both are stored as the 32 bytes)
  • Review hints

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 82.56% and project coverage change: +0.01% 🎉

Comparison is base (685f266) 90.33% compared to head (fcd7631) 90.35%.
Report is 2 commits behind head on main.

❗ 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    #2456      +/-   ##
==========================================
+ Coverage   90.33%   90.35%   +0.01%     
==========================================
  Files         106      106              
  Lines       55732    55815      +83     
  Branches    55732    55815      +83     
==========================================
+ Hits        50347    50433      +86     
+ Misses       5385     5382       -3     
Files Changed Coverage Δ
lightning/src/routing/gossip.rs 89.67% <0.00%> (-0.07%) ⬇️
lightning/src/ln/peer_handler.rs 61.40% <13.79%> (-0.21%) ⬇️
lightning/src/routing/router.rs 93.57% <50.00%> (-0.06%) ⬇️
lightning/src/util/macro_logger.rs 89.58% <50.00%> (ø)
lightning/src/events/mod.rs 43.40% <76.47%> (+1.30%) ⬆️
lightning/src/ln/msgs.rs 85.51% <81.66%> (+0.54%) ⬆️
lightning/src/ln/channelmanager.rs 85.73% <88.37%> (+0.01%) ⬆️
lightning/src/ln/channel.rs 89.55% <95.74%> (+0.09%) ⬆️
lightning-invoice/src/utils.rs 97.69% <100.00%> (ø)
lightning/src/chain/channelmonitor.rs 94.82% <100.00%> (ø)
... and 5 more

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@optout21
Copy link
Contributor Author

Not intended for merging, see comment in #2408 #2408 (comment)
Closing

@optout21 optout21 closed this Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abstraction of ChannelId type
2 participants