Skip to content

Bump lnd to latest v0.21.x branch commit#275

Open
ziggie1984 wants to merge 2 commits into
lightninglabs:lnd-21-0from
ziggie1984:bump-lnd-v0.21.0-rc1
Open

Bump lnd to latest v0.21.x branch commit#275
ziggie1984 wants to merge 2 commits into
lightninglabs:lnd-21-0from
ziggie1984:bump-lnd-v0.21.0-rc1

Conversation

@ziggie1984
Copy link
Copy Markdown

@ziggie1984 ziggie1984 commented May 20, 2026

Summary

  • bump the lnd dependency to latest v0.21.x branch commit 1dc2a4f321cc7ba864aff4a692297bbfbbceddf6
  • align the kvdb, queue, and sqldb split modules to the same lnd branch commit
  • update PayInvoice to use routerrpc.SendPaymentV2 after SendPaymentSync removal
  • track already completed payments with TrackPaymentV2 so returned fees are not assumed to be zero

Router RPC tradeoff

PayInvoice remains on the existing LightningClient API, but it now internally uses the router RPC client. This avoids a public API move to RouterClient while matching the supported lnd v0.21.x payment RPC surface. The tradeoff is that PayInvoice now depends on the router subserver and router macaroon in addition to the normal Lightning client wiring.

Verification

  • make build
  • make unit
  • make unit-race
  • make lint

@ziggie1984 ziggie1984 changed the base branch from master to lnd-21-0 May 20, 2026 22:39
@ziggie1984 ziggie1984 force-pushed the bump-lnd-v0.21.0-rc1 branch from d6940ee to ba9a866 Compare May 20, 2026 22:50
@ziggie1984 ziggie1984 changed the title Bump lnd to v0.21.0-beta.rc1 Bump lnd to latest v0.21.x branch commit May 20, 2026
Use lnd commit 1dc2a4f321cc7ba864aff4a692297bbfbbceddf6 from
the v0.21.x branch instead of the v0.21.0-beta.rc1 tag so
lndclient tracks the latest branch state.

Align the kvdb, queue, and sqldb split modules to the same lnd
commit.
Use routerrpc.SendPaymentV2 because the legacy SendPaymentSync RPC
is no longer available in the lnd v0.21.x dependency.

Track already completed payments with TrackPaymentV2 so PayInvoice
returns the stored fee, amount, and preimage instead of assuming a zero
fee.
@ziggie1984 ziggie1984 force-pushed the bump-lnd-v0.21.0-rc1 branch from ba9a866 to a7de1f7 Compare May 20, 2026 23:14
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.

1 participant