Restore splice coverage in chanmon_consistency fuzz target#4634
Conversation
In certain cases, we may need to terminate quiescence as a result of some error via a `ChannelError::WarnAndDisconnect`. We don't need to necessarily reconnect the peers, so we choose to manually terminate quiescence via the existing `ChannelManager::exit_quiescence` test helper.
This removes the temporary cfg flag that was added while the splice fuzzer was broken. We also include coverage for the newly supported async signing of a splice's shared input.
|
👋 Thanks for assigning @TheBlueMatt as a reviewer! |
|
After a thorough review of every file and hunk in this diff, I found no bugs, security vulnerabilities, or logic errors. Summary of review: No issues found. The PR makes consistent, well-structured changes:
|
| let (msg, is_quiescent) = assert_disconnect_action(action); | ||
| let dest_idx = log_peer_message(node_idx, node_id, nodes, out, "warning"); | ||
| if is_quiescent { | ||
| nodes[node_idx].node.exit_quiescence(node_id, &msg.channel_id).unwrap(); |
There was a problem hiding this comment.
Shouldn't we just actually disconnect in this case and drop the manual exit_quiescence method?
There was a problem hiding this comment.
We actually use exit_quiescence in production code now. I chose to use it here rather than disconnecting because we're in the middle of the fuzz settle loop and wanted to avoid taking on more complexity.
|
👋 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. |
|
Landing, but one comment that might be nice to address. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4634 +/- ##
==========================================
+ Coverage 86.69% 86.74% +0.05%
==========================================
Files 159 159
Lines 110604 110713 +109
Branches 110604 110713 +109
==========================================
+ Hits 95888 96041 +153
+ Misses 12198 12165 -33
+ Partials 2518 2507 -11
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:
|
Fixes #4502
Fixes #4504
Fixes #4581