Skip to content

build: bump lnd to v0.21.0-beta.rc1#83

Merged
calvinrzachman merged 3 commits intolightninglabs:mainfrom
calvinrzachman:lnd-v0.21.0-beta.rc1
Apr 20, 2026
Merged

build: bump lnd to v0.21.0-beta.rc1#83
calvinrzachman merged 3 commits intolightninglabs:mainfrom
calvinrzachman:lnd-v0.21.0-beta.rc1

Conversation

@calvinrzachman
Copy link
Copy Markdown
Contributor

Update to latest lnd release.

NOTE: lnd v0.21's go.mod replaces lnd/queue => ./queue to carry unreleased backpressure code that lnd/actor depends on. Replaces don't propagate to consumers, so lndinit pins lnd/queue explicitly. The pin resolves to a lnd master pseudo-version rather than the v0.21 tag because Go couldn't resolve the submodule at dfb7d5782 directly. The queue API is the same between the two commits. We can remove this once a new release/version of queue package is cut upstream.

@calvinrzachman calvinrzachman requested a review from djkazic April 17, 2026 19:08
lnd v0.21.0-beta.rc1 requires Go 1.25.5 or newer, so bump the pinned
Go version in the Dockerfile, dev.Dockerfile, and CI workflow. Going
to 1.25.9 rather than the minimum 1.25.5 picks up the latest patch
release in the 1.25.x series.
@calvinrzachman
Copy link
Copy Markdown
Contributor Author

investigating CI failures. I think one is easy go version bump in tools dockerfile. The other is related to DB version and migrations 👀

Produced by running cmd/migrate-testdata-db against the prior v33
channel.db fixture. Required for the migrate-db test suite to pass
under lnd v0.21, which bumped channeldb.LatestDBVersion to 35.
@calvinrzachman
Copy link
Copy Markdown
Contributor Author

Okay, looks like the testdata checked in to repo is db version 33. The db migration command has a check which prevents the command from running if the db version does not match the latest channeldb version. We've managed to dodge this type of CI failure until now but lnd v0.21 bumped LatestDBVersion from 33 → 35.

Made a little Go tool that opens the dbs and runs the migrations so I could checkpoint the files at the new db version. That has CI now passing.

➜  lndinit git:(lnd-v0.21.0-beta.rc1) ✗ go run ./cmd/migrate-testdata-db
channel.db migrated to version 35 at testdata/data/graph/regtest/channel.db
wtclient.db migrated to version 8 at testdata/data/graph/regtest/wtclient.db

We could commit the migration code and just run it when we bump lnd deps or another option would be to update the test code itself to run all the migrations from 33 --> current version which accrue upstream.

@calvinrzachman calvinrzachman merged commit 31ec154 into lightninglabs:main Apr 20, 2026
2 checks passed
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.

2 participants