-
Notifications
You must be signed in to change notification settings - Fork 137
Improve HTLC interceptor setup handling and fix itest flake #1899
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
Improve HTLC interceptor setup handling and fix itest flake #1899
Conversation
Summary of ChangesHello @ffranr, 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 significantly enhances the stability and reliability of the Highlights
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request strengthens tapd startup guarantees by making HTLC interceptor setup failures critical, which now causes the daemon to exit. This is a good improvement to ensure the RFQ subsystem is always functional when tapd is running. The change is implemented by propagating an error channel to the OrderHandler and reporting the setup failure as a critical error. Additionally, the PR fixes an integration test flake by providing a dedicated lnd node to a tapd instance, which correctly resolves the resource conflict. The changes are well-reasoned and correctly implemented. I have a couple of minor suggestions to improve code comments and style guide adherence.
7bdc231 to
b044d92
Compare
Previously, Charlie's tapd node shared an LND node with Bob's tapd node. This caused flakes when setting up the RFQ HTLC interceptor in each tapd node.
31b06d7 to
952be70
Compare
|
This PR should fix this sort of flake: https://github.com/lightninglabs/taproot-assets/actions/runs/19930326488/job/57140421069 |
Pull Request Test Coverage Report for Build 19979510397Details
💛 - Coveralls |
jtobin
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.
One question about the new ErrChan, otherwise LGTM. 👍 👍
Handle failed HTLC intercept setup attempts as critical errors to ensure issues are surfaced promptly.
952be70 to
450304d
Compare
jtobin
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.
🚢 🚢
This PR strengthens tapd startup guarantees and fixes the flake in the
unknown_TLV_typeitest.Key points