itest: add chancloser aux output regression coverage#2091
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request adds a deterministic regression test to the custom-channels integration suite. The purpose is to validate the fix for a cooperative close fee baseline bug that occurred when channels included auxiliary outputs. By simulating a close at the relay fee floor, the test confirms that the fee estimation logic correctly accounts for these outputs, ensuring successful channel closure. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a regression test for cooperative close fee estimation when auxiliary outputs are present, ensuring that closing at the relay floor remains successful. It also adds helper functions closeAssetChannelWithFeeAndAssert and waitForClosePendingUpdate to facilitate testing channel closures with specific fee rates. Feedback suggests replacing the magic number 1000 with a named constant for better maintainability and improving the reliability of channel closure operations by using a longer timeout and applying it to the CloseChannel RPC call.
Coverage Report for CI Build 24788235266Coverage decreased (-0.005%) to 34.364%Details
Uncovered Changes
Coverage Regressions28 previously-covered lines in 5 files lost coverage.
Coverage Stats
💛 - Coveralls |
Why
lndPR #10615 fixes coop-close fee baseline calculation for channels whose final close transaction includes auxiliary outputs. Before that fix, the initial taproot/custom-channel close offer could be underpriced, causing the responder to reject it withunable to process close msg: insufficient fee.This PR adds taproot-assets itest coverage for that exact path so we can verify the upstream fix end to end.