Skip to content

build: migrate integrated subservers to btcd v2 modules - #1438

Draft
hieblmi wants to merge 3 commits into
lightninglabs:masterfrom
hieblmi:hai/btcd-v2
Draft

hieblmi wants to merge 3 commits into
lightninglabs:masterfrom
hieblmi:hai/btcd-v2

Conversation

@hieblmi

@hieblmi hieblmi commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Migrate LiT's Bitcoin Go types to the btcd v2 modules and pin a coherent dependency graph for Loop #1199.

The combined daemon needs matching source changes in every integrated subserver. This draft uses immutable companion revisions for:

Use released lndclient v0.21.0-3, the matching v2 lnd and Aperture revisions, and the updated wallet and chain modules. Preserve and migrate the locally patched TLV module. Match session database errors against the selected pgx v5 driver, with a regression for serialization and uniqueness classification. The fork replacements are temporary until the companion changes land upstream; projects importing exported Bitcoin Go types must migrate to the v2 packages.

Use lnd revision f2963ce1fd19, which contains the released v0.21.4 forwarding-response recovery and replay fixes, rather than the older v2 snapshot. Align the SQL, queue, and result-helper modules with that revision and build with Go 1.26.8. Add a database restart regression that seeds released-format settle/fail responses, closes the outgoing channel, and verifies both the response payload and its circuit survive recovery.

Validation: the recovery regression passes three times under the race detector; the full unit race suite passes with the normal service build tags. The standard embedded UI and all regtest binaries build successfully. All eight selected terminal integration cases and the full unit race suite against the published remote dependency graph pass. Loop's SQLite/PostgreSQL race, lint, module, and generated-doc checks pass; the Taproot Assets full unit suite and TLV race tests pass as well.

Keep this draft until the companion migrations and dependency revisions are accepted together. Loop's compatibility jobs will use this branch at an immutable revision while the upstream default branches still use legacy packages.

Viktor edit:
Closes: #1336

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.

Update to btcd v0.26 / v2 modules

2 participants