scripts: add script to upgrade to v2 modules automatically - #2547
Draft
guggero wants to merge 1 commit into
Draft
Conversation
guggero
added a commit
to guggero/lnd
that referenced
this pull request
Jun 19, 2026
This commit was created by the script that can be found in btcsuite/btcd#2547. To get the exact same diff as this commit, you also need to run 'make rpc' after running the script. The commit might not yet compile and require some manual changes. But to make sure it can be fully reproduced by a reviewer, we keep it that way and keep all manual changes in a follow-up commit. We might want to "squash and merge" this PR to make sure the final commit that goes into master compiles fully.
guggero
force-pushed
the
upgrade-v2-scripted-diff
branch
from
June 19, 2026 14:53
2ef488f to
4a9fc8a
Compare
Roasbeef
pushed a commit
to btcsuite/btcwallet
that referenced
this pull request
Jun 23, 2026
This commit was created by the script that can be found in btcsuite/btcd#2547. The commit might not yet compile and require some manual changes. But to make sure it can be fully reproduced by a reviewer, we keep it that way and keep all manual changes in a follow-up commit. We might want to "squash and merge" this PR to make sure the final commit that goes into master compiles fully.
Roasbeef
pushed a commit
to lightninglabs/neutrino
that referenced
this pull request
Jun 24, 2026
This commit was created by the script that can be found in btcsuite/btcd#2547. The commit might not yet compile and require some manual changes. But to make sure it can be fully reproduced by a reviewer, we keep it that way and keep all manual changes in a follow-up commit. We might want to "squash and merge" this PR to make sure the final commit that goes into master compiles fully.
guggero
added a commit
to guggero/lnd
that referenced
this pull request
Jun 24, 2026
This commit was created by the script that can be found in btcsuite/btcd#2547. To get the exact same diff as this commit, you also need to run 'make rpc' after running the script. The commit might not yet compile and require some manual changes. But to make sure it can be fully reproduced by a reviewer, we keep it that way and keep all manual changes in a follow-up commit. We might want to "squash and merge" this PR to make sure the final commit that goes into master compiles fully.
ellemouton
pushed a commit
to guggero/lnd
that referenced
this pull request
Jun 24, 2026
Migrate all btcd dependencies to the new per-package v2 modules (wire/v2, txscript/v2, chaincfg/v2, chainhash/v2, btcutil/v2, psbt/v2, btcec/v2) introduced by btcd v0.26.0, and pin the tagged ecosystem versions: btcwallet v0.17.0, neutrino v0.18.0 and lightning-onion v1.4.0. The bulk of the import rewrite was produced by the scripted diff from btcsuite/btcd#2547 (followed by 'make rpc'). The address symbols that moved out of btcutil into the new address package are imported as btcaddr where a local "address" variable would otherwise shadow them. The go.mod/go.sum updates and the remaining manual compilation fixes are folded into this single commit so it builds on its own (the migration was previously split into a reproducible scripted-diff plus follow-ups, intended to be squashed on merge).
ellemouton
pushed a commit
to guggero/lnd
that referenced
this pull request
Jun 24, 2026
Migrate all btcd dependencies to the new per-package v2 modules (wire/v2, txscript/v2, chaincfg/v2, chainhash/v2, btcutil/v2, psbt/v2, btcec/v2) introduced by btcd v0.26.0, and pin the tagged ecosystem versions: btcwallet v0.17.0, neutrino v0.18.0 and lightning-onion v1.4.0. The bulk of the import rewrite was produced by the scripted diff from btcsuite/btcd#2547 (followed by 'make rpc'). The address symbols that moved out of btcutil into the new address package are imported as btcaddr where a local "address" variable would otherwise shadow them. The go.mod/go.sum updates and the remaining manual compilation fixes are folded into this single commit so it builds on its own (the migration was previously split into a reproducible scripted-diff plus follow-ups, intended to be squashed on merge).
This was referenced Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Will allow downstream consumer projects to more easily switch to the new
v2modules by using an upgrade script.