-
Notifications
You must be signed in to change notification settings - Fork 433
Remove spurious debug assertion added in 0.2 #4312
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
Remove spurious debug assertion added in 0.2 #4312
Conversation
|
👋 Thanks for assigning @wpaulino as a reviewer! |
873bee1 to
809a3f5
Compare
In 20877b3 we added a `debug_assert`ion to validate that if we call `maybe_free_holding_cell_htlcs` and it doesn't manage to generate a new commitment (implying `!can_generate_new_commitment()`) that we don't have any HTLCs to fail, but there was no reason for that, and its reachable. Here we simply remove the spurious debug assertion and add a test that exercises it.
809a3f5 to
b524b9b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4312 +/- ##
==========================================
- Coverage 86.59% 86.57% -0.02%
==========================================
Files 158 158
Lines 102368 102367 -1
Branches 102368 102367 -1
==========================================
- Hits 88641 88622 -19
- Misses 11313 11328 +15
- Partials 2414 2417 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
wpaulino
left a comment
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.
Landing with one approval given the change is trivial and has test coverage.
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
|
Backported in #4344 |
In 20877b3 we added a
debug_assertion to validate that if we callmaybe_free_holding_cell_htlcsand it doesn't manage to generate a new commitment (implying!can_generate_new_commitment()) that we don't have any HTLCs to fail, but there was no reason for that, and its reachable.Here we simply remove the spurious debug assertion and add a test that exercises it.