Skip to content

go.mod: update lnd to v0.21.0-beta.rc1#271

Closed
hieblmi wants to merge 13 commits intolightninglabs:lnd-21-0from
hieblmi:bump-lnd
Closed

go.mod: update lnd to v0.21.0-beta.rc1#271
hieblmi wants to merge 13 commits intolightninglabs:lnd-21-0from
hieblmi:bump-lnd

Conversation

@hieblmi
Copy link
Copy Markdown
Contributor

@hieblmi hieblmi commented Apr 23, 2026

No description provided.

starius and others added 12 commits January 22, 2026 14:50
During planned termination, conn.Close() can return ErrClientConnClosing from
gRPC package. This is expected and should not be logged as an error. Downgrade
that case to debug so logs stay clean during shutdown.

Original log line:
[ERR] LNDC: Error closing lnd connection: rpc error: code = Canceled
desc = grpc: the client connection is closing
lndclient: silence expected close error on shutdown
go.mod: bump lnd to v0.20.1-beta, go to 1.25.5
Marshal explicit route hints in lightningClient.AddInvoice so the
standard invoice path matches AddHoldInvoice.

Add regression coverage for direct AddInvoice route hint encoding and
for route hint parity between AddInvoice and AddHoldInvoice.
Set FallbackAddr on the standard AddInvoice RPC request so the
lightning client preserves explicit on-chain fallback addresses.

Extend the existing invoice tests with direct AddInvoice coverage and
parity checks against AddHoldInvoice.
Set IsAmp on the standard AddInvoice RPC request so callers can
request AMP invoices through lightningClient.AddInvoice.

Extend the existing AddInvoice unit test to assert AMP invoice
requests preserve the flag on the outgoing RPC payload.
Stop forwarding Hash on the standard AddInvoice path and warn when
Hash or HodlInvoice are provided, since callers should use
InvoicesClient.AddHoldInvoice for hold invoices.

Extend the existing AddInvoice test to assert the standard invoice
request omits hold-invoice-only arguments.
Translate BlindedPathCfg into the standard AddInvoice RPC by setting
IsBlinded and forwarding MinNumPathHops as the compatible NumHops
override.

Warn when non-overlapping blinded path settings are provided, and
extend the AddInvoice unit test to assert blinded invoice requests
preserve the translated RPC fields.
Warn when AddHoldInvoice is called with Amp or BlindedPathCfg,
since the hold-invoice RPC cannot represent those inputs.

Add coverage to document that the wrapper still forwards the supported
request fields unchanged when those unsupported inputs are present.
Preserve AddInvoiceData fields across invoice wrappers
@hieblmi hieblmi requested a review from djkazic April 23, 2026 12:51
@hieblmi hieblmi requested review from bhandras and starius April 23, 2026 12:53
@djkazic
Copy link
Copy Markdown

djkazic commented Apr 23, 2026

Needs a go mod tidy

@djkazic
Copy link
Copy Markdown

djkazic commented Apr 23, 2026

Failing to build. Smells like a replace that's needed maybe?

https://github.com/lightninglabs/lndclient/actions/runs/24836441760/job/72697959351?pr=271

Copy link
Copy Markdown
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

As 0.21 is still RC, according to branching rules we want this in the lnd-21-0 branch and not master (which always points to the last stable release). So once 0.21 is released we'll merge lnd-21-0 into master and open lnd-22-0 for development.

@hieblmi hieblmi changed the base branch from master to lnd-21-0 April 23, 2026 13:31
@hieblmi
Copy link
Copy Markdown
Contributor Author

hieblmi commented Apr 23, 2026

closing in favor of #272

@hieblmi hieblmi closed this Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants