Skip to content

multi: bump lnd to master, pin ANCHORS in custom_channels itest#2082

Merged
jtobin merged 2 commits intolightninglabs:mainfrom
GeorgeTsagk:taproot-final-acceptor
Apr 23, 2026
Merged

multi: bump lnd to master, pin ANCHORS in custom_channels itest#2082
jtobin merged 2 commits intolightninglabs:mainfrom
GeorgeTsagk:taproot-final-acceptor

Conversation

@GeorgeTsagk
Copy link
Copy Markdown
Member

Description

Bumps lnd to master tip to pull in the production taproot work and pins ANCHORS as the default commitment type in openChannelAndAssert so the custom_channels itest's public "normal sats" channels aren't swept up by lnd's new implicit-negotiation preference for final-taproot (which rejects public channels).

Depends on lightningnetwork/lnd#10763

@GeorgeTsagk GeorgeTsagk self-assigned this Apr 20, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, 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 updates the project's lnd dependency to the latest master version to incorporate recent production taproot features. To maintain test stability, it also adjusts the custom_channels integration test to explicitly use ANCHORS as the commitment type, preventing conflicts with lnd's new default negotiation behavior for public channels.

Highlights

  • Dependency Update: Updated the lnd dependency to the latest master version (v0.20.1-beta) and performed a corresponding update of various Go modules in go.mod and go.sum.
  • Test Compatibility: Modified the custom_channels itest to explicitly pin the commitment type to ANCHORS, ensuring compatibility with lnd's updated implicit-negotiation preferences for public channels.

🧠 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 Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a 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 updates various dependencies in go.mod and go.sum, including a replacement of the lnd dependency with a specific fork. It also modifies the integration test harness to default the commitment type to anchors when unspecified, preventing public channels from failing due to taproot-final negotiation. A review comment suggests further targeting this change to only apply to public channels, allowing private channels to continue using lnd's default negotiation logic for testing purposes.

Comment thread itest/custom_channels/assertions.go
GeorgeTsagk added a commit to GeorgeTsagk/taproot-assets that referenced this pull request Apr 20, 2026
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 24671241280

Coverage increased (+0.005%) to 34.362%

Details

  • Coverage increased (+0.005%) from the base build.
  • Patch coverage: 8 uncovered changes across 1 file (0 of 8 lines covered, 0.0%).
  • 24 coverage regressions across 7 files.

Uncovered Changes

File Changed Covered %
itest/custom_channels/assertions.go 8 0 0.0%

Coverage Regressions

24 previously-covered lines in 7 files lost coverage.

File Lines Losing Coverage Coverage
tapdb/addrs.go 6 56.8%
tapdb/multiverse.go 6 54.38%
tapfreighter/interface.go 4 39.87%
tapgarden/caretaker.go 3 68.08%
asset/group_key.go 2 62.64%
tapchannel/aux_leaf_signer.go 2 43.18%
commitment/tap.go 1 72.67%

Coverage Stats

Coverage Status
Relevant Lines: 100150
Covered Lines: 34414
Line Coverage: 34.36%
Coverage Strength: 0.37 hits per line

💛 - Coveralls

Comment thread itest/custom_channels/assertions.go Outdated
Comment thread itest/custom_channels/assertions.go
Comment thread docs/release-notes/release-notes-0.8.0.md Outdated
Copy link
Copy Markdown
Member

@jtobin jtobin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like lightningnetwork/lnd#10763 landed, so probably worth retargeting the replace directive at the canonical repo? Also agree w/Dario's comment re: axing the release note entry. Otherwise LGTM! 👍 👍

Bump github.com/lightningnetwork/lnd to master tip (a8a3e13120eb)
to pull in the production taproot work (PR #9985) along with the
acceptor/RBF follow-ups from lnd#10763.
The implicit negotiation default in lnd's
funding/commitment_type_negotiation.go now prefers SimpleTaprootFinal
over anchors whenever both peers advertise the final feature bit,
which is the default. Final-taproot channels are rejected if they
are public (see funding/manager.go), and the "normal sats" channels
in this harness carry gossip and must be public.

Default the CommitmentType of any openChannelAndAssert caller that
hasn't chosen one to ANCHORS so we keep the pre-bump behaviour
without touching lnd's negotiation logic.
Copy link
Copy Markdown
Contributor

@darioAnongba darioAnongba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-project-automation github-project-automation Bot moved this from 🆕 New to 👀 In review in Taproot-Assets Project Board Apr 23, 2026
@jtobin jtobin added this pull request to the merge queue Apr 23, 2026
Merged via the queue into lightninglabs:main with commit 08c341f Apr 23, 2026
94 of 113 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Taproot-Assets Project Board Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants