Skip to content

Conversation

@wpaulino
Copy link
Contributor

Once we see a splice transaction become locked, we want to emit a DiscardFunding event for every alternative funding transaction candidate that may have been negotiated due to RBFs, as they may contain inputs the user has considered "locked" that do not exist in the confirmed transaction. If the channel closes before the splice is locked, we rely on the ChannelMonitor to produce these events for us instead.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Aug 26, 2025

👋 Thanks for assigning @jkczyz as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@wpaulino wpaulino self-assigned this Aug 26, 2025
@wpaulino wpaulino requested review from TheBlueMatt and jkczyz August 26, 2025 16:46
@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

❌ Patch coverage is 82.22222% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.74%. Comparing base (6f78d57) to head (51e342b).
⚠️ Report is 53 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/chain/channelmonitor.rs 11.11% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4030      +/-   ##
==========================================
- Coverage   88.76%   88.74%   -0.03%     
==========================================
  Files         175      176       +1     
  Lines      127895   128829     +934     
  Branches   127895   128829     +934     
==========================================
+ Hits       113532   114325     +793     
- Misses      11791    11904     +113     
- Partials     2572     2600      +28     
Flag Coverage Δ
fuzzing 21.92% <68.88%> (+0.21%) ⬆️
tests 88.57% <82.22%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Once we see a splice transaction become locked, we want to emit a
`DiscardFunding` event for every alternative funding transaction
candidate that may have been negotiated due to RBFs, as they may contain
inputs the user has considered "locked" that do not exist in the
confirmed transaction. If the channel closes before the splice is
locked, we rely on the `ChannelMonitor` to produce these events for us
instead.
@wpaulino wpaulino force-pushed the splice-discard-funding branch from 4deead3 to 51e342b Compare August 27, 2025 23:05
@TheBlueMatt TheBlueMatt merged commit b39c104 into lightningdevkit:main Aug 28, 2025
25 checks passed
@wpaulino wpaulino deleted the splice-discard-funding branch August 28, 2025 16:00
@jkczyz jkczyz mentioned this pull request Dec 12, 2025
3 tasks
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.

4 participants