Tap HTLC revocation itest#1235
Conversation
Summary of ChangesHello @GeorgeTsagk, 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 introduces a critical integration test to validate the system's resilience against channel breaches involving HTLCs. By simulating a breach where a node attempts to broadcast a revoked channel state containing active HTLCs, the changes ensure that the justice transaction correctly sweeps all funds, including those from revoked HTLCs. This enhancement significantly improves the robustness of asset recovery mechanisms within the Lightning Terminal, alongside necessary dependency updates to support these new testing capabilities. 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. Changelog
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request extends the channel breach integration test to cover a scenario with active HTLCs, which is a great addition for ensuring the correctness of Taproot Asset channel breach handling. The test logic appears sound, correctly setting up a breachable state with HODL invoices and then verifying that the justice transaction sweeps all expected outputs, including revoked HTLCs.
The changes also include some dependency updates and refactoring by moving constants, which are fine.
I've added comments regarding the temporary changes in go.mod to ensure they are reverted before the final merge.
| module github.com/lightninglabs/lightning-terminal | ||
|
|
||
| go 1.24.11 | ||
| go 1.25.5 |
| replace github.com/lightninglabs/taproot-assets => github.com/GeorgeTsagk/taproot-assets v0.0.0-20260216125845-2dd50064afbe | ||
|
|
||
| replace github.com/lightninglabs/taproot-assets/taprpc => github.com/GeorgeTsagk/taproot-assets/taprpc v0.0.0-20260216125845-2dd50064afbe | ||
|
|
||
| replace github.com/lightningnetwork/lnd/sqldb => github.com/GeorgeTsagk/lnd/sqldb v0.0.0-20260216125012-1bb47e1ca203 | ||
|
|
||
| replace github.com/lightningnetwork/lnd => github.com/GeorgeTsagk/lnd v0.0.0-20260216125012-1bb47e1ca203 |
|
@Roasbeef: review reminder |
|
Closing in favor of lightninglabs/taproot-assets#1994. Itest is now natively introduced in taproot-assets, so this PR will no longer be needed |
Description
Extends the breach itest to cover a breach scenario. We expect the revocation sweep to work for the assets.
The first commit is marked as
tempas we need: