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

[Splicing] Partial, handle splice_init & splice_ack messages #3407

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

optout21
Copy link
Contributor

@optout21 optout21 commented Nov 13, 2024

Handle splice_init & splice_ack messages, without performing splicing. splice_init does not error, but splice_ack returns an error (and neither side continues with splicing).
One next piece for splicing #3298 .
This can come before #3137 .

@optout21 optout21 requested a review from jkczyz November 13, 2024 14:52
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 54.54545% with 5 lines in your changes missing coverage. Please review.

Project coverage is 88.30%. Comparing base (85d1e5f) to head (fc39429).

Files with missing lines Patch % Lines
lightning/src/ln/channel.rs 60.00% 4 Missing ⚠️
lightning/src/ln/channelmanager.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3407      +/-   ##
==========================================
- Coverage   88.32%   88.30%   -0.03%     
==========================================
  Files         149      149              
  Lines      112912   112922      +10     
  Branches   112912   112922      +10     
==========================================
- Hits        99731    99717      -14     
- Misses      10694    10717      +23     
- Partials     2487     2488       +1     

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

@optout21 optout21 changed the title [Draft, Splicing] Partly handle splice_init & splice_ack messages [Splicing] Partly handle splice_init & splice_ack messages Nov 18, 2024
@optout21 optout21 force-pushed the splice-init branch 2 times, most recently from 19f8ab8 to 4ee3735 Compare November 18, 2024 11:02
@optout21 optout21 marked this pull request as ready for review November 18, 2024 11:03
@optout21 optout21 requested a review from jkczyz November 18, 2024 11:44
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
@optout21
Copy link
Contributor Author

I have reorganized code, moved most single-channel checks and handling logic into Channel struct from ChannelManager.

lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
@optout21
Copy link
Contributor Author

Rebased (post #3137) and squashed

@optout21 optout21 requested a review from jkczyz November 21, 2024 10:34
lightning/src/ln/channel.rs Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
@optout21 optout21 changed the title [Splicing] Partly handle splice_init & splice_ack messages [Splicing] Partlial, handle splice_init & splice_ack messages Dec 5, 2024
@optout21
Copy link
Contributor Author

optout21 commented Dec 5, 2024

Rebased and squashed
TODO: Fix linting issue

@optout21 optout21 changed the title [Splicing] Partlial, handle splice_init & splice_ack messages [Splicing] Partial, handle splice_init & splice_ack messages Dec 5, 2024
@optout21 optout21 requested a review from jkczyz December 6, 2024 11:18
@optout21
Copy link
Contributor Author

optout21 commented Jan 5, 2025

Rebased (minor merge conflict)

@optout21
Copy link
Contributor Author

optout21 commented Jan 9, 2025

Rebased (post Inbound/OutboundV2Channel merge #3498 )

lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Outdated Show resolved Hide resolved
lightning/src/ln/channel.rs Show resolved Hide resolved
lightning/src/ln/channelmanager.rs Show resolved Hide resolved
@optout21
Copy link
Contributor Author

optout21 commented Jan 24, 2025

I've closed the remaining two outstanding review comments. Note that this now depends/includes #3558 (I'll take care if merge is needed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Splicing weekly goal Someone wants to land this this week
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants