wallet, refactor: modularise wallet by extracting out legacy wallet migration #34909

Manually merged
rkrux merged 5 commits from wallet-migration into master 2026-11-24 15:56:30 +00:00 AGit
rkrux commented 2026-03-24 13:00:36 +00:00 (Migrated from github.com)

I've been meaning to scratch this itch for quite some time. It has been noted
by many developers that the wallet/wallet.cpp file is quite hard to reason
about.

It is more than 4500 lines long currently and this patch is an attempt to
shortern it by around 800 lines by extracting out the wallet migration code into
a dedicated wallet/migration.cpp file.

The other benefits of this PR I see are that it moves the legacy wallet stuff
from the main wallet file that paves the way for it being descriptor specific
(as much as possible), and makes legacy wallet migration code a first-class
citizen in its own file.

I hope it makes it easier for everyone to go through the main wallet file.

This patchset should be reviewed with --color-moved=dimmed-zebra option.

I've been meaning to scratch this itch for quite some time. It has been noted by many developers that the `wallet/wallet.cpp` file is quite hard to reason about. It is more than 4500 lines long currently and this patch is an attempt to shortern it by around 800 lines by extracting out the wallet migration code into a dedicated `wallet/migration.cpp` file. The other benefits of this PR I see are that it moves the legacy wallet stuff from the main wallet file that paves the way for it being descriptor specific (as much as possible), and makes legacy wallet migration code a first-class citizen in its own file. I hope it makes it easier for everyone to go through the main wallet file. This patchset **should** be reviewed with --color-moved=dimmed-zebra option.
DrahtBot commented 2026-03-24 13:01:01 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK achow101, maflcko
Concept ACK pablomartin4btc, w0xlt

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36825 (wallet: fix migration with watch-only transactions by psychemist)
  • #36823 (wallet, migration: Skip legacy wallet records rather than erasing them, and drop unused record erase functions by achow101)
  • #36444 (wallet: Store information about created and imported multipath descriptors by achow101)
  • #36443 (descriptor: Reconstruct a multipath descriptor from its expansion by achow101)
  • #36442 (descriptor: Represent multipath descriptors in a single Descriptor object by achow101)
  • #36268 (refactor: prune unused semi-colons by fanquake)
  • #35998 (wallet: Handle or explicitly ignore WalletBatch write failures by achow101)
  • #35716 (wallet: Replace mapWallet and wtxOrdered with a boost::multi_index by achow101)
  • #34603 (wallet: Fix detection of symlinks on Windows by achow101)
  • #30343 (wallet, logging: Replace WalletLogPrintf() with LogInfo() by ryanofsky)
  • #27865 (wallet: Track no-longer-spendable TXOs separately by achow101)
  • #26022 (Add util::ResultPtr class by ryanofsky)
  • #25665 (refactor: Add util::Result failure types and ability to merge result values by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

LLM Linter (✨ experimental)

Possible places where named args for integral literals may be used (e.g. func(x, /*named_arg=*/0) in C++, and func(x, named_arg=0) in Python):

  • src/wallet/migration.cpp: WalletDescriptor(std::move(descs.at(0)), creation_time, 0, 0, 0) (watch-only descriptors)
  • src/wallet/migration.cpp: AddWalletDescriptor(w_desc, keys, "", false)
  • src/wallet/migration.cpp: WalletDescriptor(std::move(descs.at(0)), creation_time, 0, 0, 0) (solvable descriptors)
  • src/wallet/migration.cpp: AddWalletDescriptor(w_desc, keys, "", false)

2026-11-23 09:54:33

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/34909 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/34909.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/34909#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [achow101](https://github.com/bitcoin/bitcoin/pull/34909#issuecomment-7114406052), [maflcko](https://github.com/bitcoin/bitcoin/pull/34909#issuecomment-7132531664) | | Concept ACK | [pablomartin4btc](https://github.com/bitcoin/bitcoin/pull/34909#pullrequestreview-4492046409), [w0xlt](https://github.com/bitcoin/bitcoin/pull/34909#issuecomment-6066058768) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36825](https://github.com/bitcoin/bitcoin/pull/36825) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36825.svg"></sub> (wallet: fix migration with watch-only transactions by psychemist) * [#36823](https://github.com/bitcoin/bitcoin/pull/36823) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36823.svg"></sub> (wallet, migration: Skip legacy wallet records rather than erasing them, and drop unused record erase functions by achow101) * [#36444](https://github.com/bitcoin/bitcoin/pull/36444) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36444.svg"></sub> (wallet: Store information about created and imported multipath descriptors by achow101) * [#36443](https://github.com/bitcoin/bitcoin/pull/36443) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36443.svg"></sub> (descriptor: Reconstruct a multipath descriptor from its expansion by achow101) * [#36442](https://github.com/bitcoin/bitcoin/pull/36442) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36442.svg"></sub> (descriptor: Represent multipath descriptors in a single Descriptor object by achow101) * [#36268](https://github.com/bitcoin/bitcoin/pull/36268) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36268.svg"></sub> (refactor: prune unused semi-colons by fanquake) * [#35998](https://github.com/bitcoin/bitcoin/pull/35998) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35998.svg"></sub> (wallet: Handle or explicitly ignore `WalletBatch` write failures by achow101) * [#35716](https://github.com/bitcoin/bitcoin/pull/35716) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35716.svg"></sub> (wallet: Replace mapWallet and wtxOrdered with a boost::multi_index by achow101) * [#34603](https://github.com/bitcoin/bitcoin/pull/34603) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34603.svg"></sub> (wallet: Fix detection of symlinks on Windows by achow101) * [#30343](https://github.com/bitcoin/bitcoin/pull/30343) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/30343.svg"></sub> (wallet, logging: Replace WalletLogPrintf() with LogInfo() by ryanofsky) * [#27865](https://github.com/bitcoin/bitcoin/pull/27865) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/27865.svg"></sub> (wallet: Track no-longer-spendable TXOs separately by achow101) * [#26022](https://github.com/bitcoin/bitcoin/pull/26022) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/26022.svg"></sub> (Add util::ResultPtr class by ryanofsky) * [#25665](https://github.com/bitcoin/bitcoin/pull/25665) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/25665.svg"></sub> (refactor: Add util::Result failure types and ability to merge result values by ryanofsky) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3--> ### LLM Linter (✨ experimental) Possible places where named args for integral literals may be used (e.g. `func(x, /*named_arg=*/0)` in C++, and `func(x, named_arg=0)` in Python): - `src/wallet/migration.cpp`: `WalletDescriptor(std::move(descs.at(0)), creation_time, 0, 0, 0)` (watch-only descriptors) - `src/wallet/migration.cpp`: `AddWalletDescriptor(w_desc, keys, "", false)` - `src/wallet/migration.cpp`: `WalletDescriptor(std::move(descs.at(0)), creation_time, 0, 0, 0)` (solvable descriptors) - `src/wallet/migration.cpp`: `AddWalletDescriptor(w_desc, keys, "", false)` <sup>2026-11-23 09:54:33</sup>
rkrux commented 2026-03-24 13:12:04 +00:00 (Migrated from github.com)

Fixed two things:

  • the linter issue where the trailing new line at the end of the file was missing.
  • forgot to update the migration portion in bench for which I didn't get an error in local, checking why.
Fixed two things: - the linter issue where the trailing new line at the end of the file was missing. - forgot to update the migration portion in bench for which I didn't get an error in local, checking why.
rkrux commented 2026-03-25 11:24:24 +00:00 (Migrated from github.com)

Pushed an update where three more migration specific CWallet methods are extracted out.

Pushed an update where three more migration specific `CWallet` methods are extracted out.
rkrux commented 2026-04-22 14:21:17 +00:00 (Migrated from github.com)

Rebased over master from 8723a4f to ecaef3d.

Rebased over master from [8723a4f](https://github.com/bitcoin/bitcoin/commit/8723a4f06dc553b1d868c47733b5e82358f3585f) to [ecaef3d](https://github.com/bitcoin/bitcoin/commit/ecaef3d2bfc4260cde19608ae3f707823f06b872).
DrahtBot commented 2026-04-22 14:47:51 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task Windows native, fuzz, VS: https://github.com/bitcoin/bitcoin/actions/runs/24783607828/job/72521322210
LLM reason (✨ experimental): CI failed because the spkm_migration fuzz target hit a wallet database format assertion (m_database->Format() != "bdb_ro" && != "mock") in wallet::CWallet::SetupLegacyScriptPubKeyMan and exited with code 1.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `Windows native, fuzz, VS`: https://github.com/bitcoin/bitcoin/actions/runs/24783607828/job/72521322210</sub> <sub>LLM reason (✨ experimental): CI failed because the `spkm_migration` fuzz target hit a wallet database format assertion (`m_database->Format() != "bdb_ro" && != "mock"`) in `wallet::CWallet::SetupLegacyScriptPubKeyMan` and exited with code 1.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
rkrux commented 2026-04-22 14:48:23 +00:00 (Migrated from github.com)

Force pushed to fix the CI failures because of incorrectly resolving conflicts during rebase due to the changes in this file of this PR.

Force pushed to fix the CI failures because of incorrectly resolving conflicts during rebase due to the [changes in this file of this PR](https://github.com/bitcoin/bitcoin/pull/33032/changes#diff-1f2db0e4d5c12d109c7f0962333c245b49b696cb39ff432da048e9d6c08944d8).
rkrux commented 2026-04-23 09:43:45 +00:00 (Migrated from github.com)

Split the diff into multiple commits to aid review from 7b87334 to e9f50db.

Split the diff into multiple commits to aid review from [7b87334](https://github.com/bitcoin/bitcoin/commit/7b873340e00007f29f444bd060977c0671e4fb6b) to [e9f50db](https://github.com/bitcoin/bitcoin/commit/e9f50dbf71131ae980d1f3344c653e831144ee15).
DrahtBot commented 2026-04-23 09:52:00 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/24828329553/job/72670043902
LLM reason (✨ experimental): CI failed because the trailing_newline lint check reported a missing trailing newline in src/wallet/migration.h.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/24828329553/job/72670043902</sub> <sub>LLM reason (✨ experimental): CI failed because the `trailing_newline` lint check reported a missing trailing newline in `src/wallet/migration.h`.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
rkrux commented 2026-04-23 09:52:19 +00:00 (Migrated from github.com)

Fixed lint failure due to missing new line in wallet/migration.h.

Fixed [lint failure](https://github.com/bitcoin/bitcoin/actions/runs/24828329553/job/72670043902?pr=34909) due to missing new line in wallet/migration.h.
rkrux commented 2026-05-05 09:24:31 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #34544.

Rebased over master to incorporate changes from #34544.
rkrux commented 2026-05-22 09:50:47 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #34806.

Rebased over master to incorporate changes from #34806.
fanquake commented 2026-05-22 10:34:41 +00:00 (Migrated from github.com)
 Build FAILED.

"D:\a\bitcoin\bitcoin\build\ALL_BUILD.vcxproj" (default target) (1) ->
"D:\a\bitcoin\bitcoin\build\src\bench\bench_bitcoin.vcxproj" (default target) (4) ->
"D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj" (default target) (12) ->
(ClCompile target) -> 
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(78,14): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(78,39): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,34): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,26): error C2530: 'value': references must be initialized [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,26): error C3531: 'value': a symbol whose type contains 'auto' must have an initializer [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,32): error C2143: syntax error: missing ';' before ':' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,59): error C2143: syntax error: missing ';' before ')' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(82,9): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(91,14): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(92,64): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(92,31): error C2079: 'new_value' uses undefined class 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(92,64): error C2065: 'VARR': undeclared identifier [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,34): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,26): error C2530: 'value': references must be initialized [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,26): error C3531: 'value': a symbol whose type contains 'auto' must have an initializer [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,32): error C2143: syntax error: missing ';' before ':' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,59): error C2143: syntax error: missing ';' before ')' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(96,33): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
  D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(97,23): error C2582: 'operator =' function is unavailable in 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj]
```bash Build FAILED. "D:\a\bitcoin\bitcoin\build\ALL_BUILD.vcxproj" (default target) (1) -> "D:\a\bitcoin\bitcoin\build\src\bench\bench_bitcoin.vcxproj" (default target) (4) -> "D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj" (default target) (12) -> (ClCompile target) -> D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(78,14): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(78,39): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,34): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,26): error C2530: 'value': references must be initialized [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,26): error C3531: 'value': a symbol whose type contains 'auto' must have an initializer [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,32): error C2143: syntax error: missing ';' before ':' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(79,59): error C2143: syntax error: missing ';' before ')' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(82,9): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(91,14): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(92,64): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(92,31): error C2079: 'new_value' uses undefined class 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(92,64): error C2065: 'VARR': undeclared identifier [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,34): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,26): error C2530: 'value': references must be initialized [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,26): error C3531: 'value': a symbol whose type contains 'auto' must have an initializer [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,32): error C2143: syntax error: missing ';' before ':' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(93,59): error C2143: syntax error: missing ';' before ')' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(96,33): error C2027: use of undefined type 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] D:\a\bitcoin\bitcoin\src\wallet\walletutil.cpp(97,23): error C2582: 'operator =' function is unavailable in 'UniValue' [D:\a\bitcoin\bitcoin\build\src\wallet\bitcoin_wallet.vcxproj] ```
rkrux commented 2026-05-29 11:15:40 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #28333.

Rebased over master to incorporate changes from #28333.
pablomartin4btc (Migrated from github.com) reviewed 2026-06-13 21:17:28 +00:00
pablomartin4btc (Migrated from github.com) left a comment

Concept ACK

I see you opened also #34910, wouldn't it make sense to add that commit here?

As a future consideration, have you thought about whether this structure could accommodate future migration types beyond legacy-to-descriptor, perhaps with a dedicated migration class? Curious if that's something worth exploring as a follow-up.

Concept ACK I see you opened also #34910, wouldn't it make sense to add that commit here? As a future consideration, have you thought about whether this structure could accommodate future migration types beyond legacy-to-descriptor, perhaps with a dedicated migration class? Curious if that's something worth exploring as a follow-up.
rkrux commented 2026-06-15 09:29:44 +00:00 (Migrated from github.com)

I see you opened also https://github.com/bitcoin/bitcoin/pull/34910, wouldn't it make sense to add that commit here?

I had raised it separately because that change in itself seemed fine as well and I didn't want the changes of this PR to hold merging that PR. But given that #34910 has not been merged yet, I have cherry-picked that commit here and closed that PR now in favour of this one.

> I see you opened also https://github.com/bitcoin/bitcoin/pull/34910, wouldn't it make sense to add that commit here? I had raised it separately because that change in itself seemed fine as well and I didn't want the changes of this PR to hold merging that PR. But given that #34910 has not been merged yet, I have cherry-picked that commit here and closed that PR now in favour of this one.
rkrux commented 2026-06-15 09:38:52 +00:00 (Migrated from github.com)

As a future consideration, have you thought about whether this structure could accommodate future migration types beyond legacy-to-descriptor, perhaps with a dedicated migration class? Curious if that's something worth exploring as a follow-up.

I believe the migration is more of a one-off event and the likelihood of adding other migration flows beyond legacy-to-descriptor is very low, so I don't think it's worth introducing a dedicated migration class at this stage.

> As a future consideration, have you thought about whether this structure could accommodate future migration types beyond legacy-to-descriptor, perhaps with a dedicated migration class? Curious if that's something worth exploring as a follow-up. I believe the migration is more of a one-off event and the likelihood of adding other migration flows beyond legacy-to-descriptor is very low, so I don't think it's worth introducing a dedicated migration class at this stage.
rkrux commented 2026-06-15 14:45:00 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #35414.

Rebased over master to incorporate changes from #35414.
DrahtBot commented 2026-06-15 16:41:11 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/27554400650/job/81454235475
LLM reason (✨ experimental): CI failed because IWYU reported a failure (“Failure generated from IWYU”) due to incorrect/missing #include ordering/content in src/bench/pool.cpp.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `iwyu`: https://github.com/bitcoin/bitcoin/actions/runs/27554400650/job/81454235475</sub> <sub>LLM reason (✨ experimental): CI failed because IWYU reported a failure (“Failure generated from IWYU”) due to incorrect/missing `#include` ordering/content in `src/bench/pool.cpp`.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
rkrux commented 2026-06-16 07:00:03 +00:00 (Migrated from github.com)
The [CI / iwyu (pull_request)](https://github.com/bitcoin/bitcoin/actions/runs/27554400650/job/81597817969?pr=34909) failure is unrelated and should have been fixed post https://github.com/bitcoin/bitcoin/pull/35535.
DrahtBot commented 2026-06-24 20:29:29 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-06-25 09:28:28 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from PR #35266.

Rebased over master to incorporate changes from PR #35266.
rkrux commented 2026-06-25 09:32:54 +00:00 (Migrated from github.com)

Force-pushed to emphasise in the commit messages that most of the commits should be reviewed with the --color-moved=dimmed-zebra git option.

Force-pushed to emphasise in the commit messages that most of the commits should be reviewed with the --color-moved=dimmed-zebra git option.
DrahtBot commented 2026-07-03 11:27:44 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-07-07 12:38:52 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #32489.

Rebased over master to incorporate changes from #32489.
DrahtBot commented 2026-08-04 22:57:30 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-08-11 10:11:58 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #35501.

Rebased over master to incorporate changes from #35501.
DrahtBot commented 2026-08-18 09:55:21 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-09-02 10:34:18 +00:00 (Migrated from github.com)

Rebased over master to fix conflicts.

Rebased over master to fix conflicts.
DrahtBot commented 2026-09-12 12:04:15 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-09-12 12:23:56 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #35935.

Rebased over master to incorporate changes from #35935.
DrahtBot commented 2026-09-14 13:35:35 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-09-14 14:06:39 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #35436 and #34681.

Rebased over master to incorporate changes from #35436 and #34681.
DrahtBot commented 2026-09-22 20:51:14 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-09-28 11:46:13 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #35752.

Rebased over master to incorporate changes from #35752.
First-time contributor

🔵 Suggestion · walletutil.h unnecessarily exposes the full chain interface

The reference-only settings declarations make walletutil.h consumers inherit interfaces/chain.h; a forward declaration would avoid that dependency, although compile-time savings are unmeasured.

Location: src/wallet/walletutil.h:8 (head).

🔵 Suggestion · migration.cpp and migration.h omit the moved code's license headers

The extracted files omit the copyright and MIT notices from wallet.cpp and wallet.h, contrary to the attribution requirement in CONTRIBUTING.md.

Location: src/wallet/migration.cpp:1 (head).

🔵 Suggestion · GetWalletPath documentation is restored in an unrelated commit

The utility extraction drops the GetWalletPath comment, leaving the following migration-API extraction with an unrelated documentation-only change to walletutil.h.

Location: src/wallet/walletutil.h:85 (commit).

Review coverage was incomplete.


Reviewed: 9fd8e543b3ce · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:95cedc5d372e2509a5cb777a0ac827f72f4380472ef1dd5dd7371b27772a2c7e:1ed10c4979af6fc548d6b8d4534d505e02e84ac4b0aa4f8633555b2ba75119e8 --> <!-- ralph-base:19128e8b77553e4362fcbf3cb8f3f7dc5a2e4253 --> <!-- ralph-head:9fd8e543b3ceed08a4bb8ce3d8d342195403056e --> <!-- ralph-case:9a76c3b10b013d87786ac39f7c3dc5e488e151dfa1091f1d7a517d88e46d927c --> **🔵 Suggestion · `walletutil.h` unnecessarily exposes the full chain interface** The reference-only settings declarations make `walletutil.h` consumers inherit `interfaces/chain.h`; a forward declaration would avoid that dependency, although compile-time savings are unmeasured. Location: [`src/wallet/walletutil.h:8`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/9fd8e543b3ceed08a4bb8ce3d8d342195403056e/src/wallet/walletutil.h#L8>) (head). **🔵 Suggestion · `migration.cpp` and `migration.h` omit the moved code's license headers** The extracted files omit the copyright and MIT notices from `wallet.cpp` and `wallet.h`, contrary to the attribution requirement in `CONTRIBUTING.md`. Location: [`src/wallet/migration.cpp:1`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/9fd8e543b3ceed08a4bb8ce3d8d342195403056e/src/wallet/migration.cpp#L1>) (head). **🔵 Suggestion · `GetWalletPath` documentation is restored in an unrelated commit** The utility extraction drops the `GetWalletPath` comment, leaving the following migration-API extraction with an unrelated documentation-only change to `walletutil.h`. Location: src/wallet/walletutil.h:85 (commit). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`9fd8e543b3ce`](<https://git.fish.foo/bitcoin/bitcoin/commit/9fd8e543b3ceed08a4bb8ce3d8d342195403056e>) · [Review report](<https://review.fish.foo/report/34909-9fd8e543b3ceed08a4bb8ce3d8d342195403056e-2960-6.html>) · [Previous reports](<https://review.fish.foo/traces/34909/>) [permalink](<https://review.fish.foo/report/34909-9fd8e543b3ceed08a4bb8ce3d8d342195403056e-2960-6.html>)
DrahtBot commented 2026-10-05 10:31:04 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-10-06 14:05:10 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #32895.

Rebased over master to incorporate changes from #32895.
w0xlt commented 2026-10-08 18:05:56 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
DrahtBot commented 2026-10-20 08:47:42 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-10-23 05:59:19 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #36397.

Rebased over master to incorporate changes from #36397.
achow101 (Migrated from github.com) reviewed 2026-11-10 21:43:33 +00:00
achow101 (Migrated from github.com) left a comment

I think it would be better if we could put all of the legacy wallet migration stuff into its own subdirectory, e.g. src/wallet/legacy/ rather than having the multiple migration related files in the main wallet module directory. This would let us separate out all of the migration things without polluting the main module with these files, especially as there are more things that can be pulled out (in future PRs) from database things.

I think it would be better if we could put all of the legacy wallet migration stuff into its own subdirectory, e.g. `src/wallet/legacy/` rather than having the multiple migration related files in the main wallet module directory. This would let us separate out all of the migration things without polluting the main module with these files, especially as there are more things that can be pulled out (in future PRs) from database things.
achow101 (Migrated from github.com) commented 2026-11-10 21:41:16 +00:00

In adfcde180e "wallet: (move-only) extract out migration specific CWallet methods"

Could these functions be made non-members of CWallet? I don't really like having the implementation of member functions be spread across multiple files.

In adfcde180e5ba66c9390e63fd916efd6e07935c1 "wallet: (move-only) extract out migration specific CWallet methods" Could these functions be made non-members of CWallet? I don't really like having the implementation of member functions be spread across multiple files.
rkrux (Migrated from github.com) reviewed 2026-11-11 13:45:10 +00:00
rkrux (Migrated from github.com) commented 2026-11-11 13:45:10 +00:00

Yes, I did think of this initially but didn't do to keep the scope minimal, but will make them non-members of CWallet now.

Yes, I did think of this initially but didn't do to keep the scope minimal, but will make them non-members of CWallet now.
achow101 commented 2026-11-16 23:15:00 +00:00 (Migrated from github.com)

ACK 60136a68ba

I've opened #36897 to implement the suggestions I made earlier, along with additional encapsulation.

ACK 60136a68baddf49c49ebd79b364ea8857f5d5db9 I've opened #36897 to implement the suggestions I made earlier, along with additional encapsulation.
achow101 (Migrated from github.com) reviewed 2026-11-17 01:40:35 +00:00
achow101 (Migrated from github.com) commented 2026-11-17 01:40:35 +00:00

In f92202584e "wallet: extract out utility functions from wallet/wallet"

This should be in the previous commit, surprised that CI is passing as the previous commit does not compile.

In f92202584e09f0acfa5e1213817b3987c3e90f96 "wallet: extract out utility functions from wallet/wallet" This should be in the previous commit, surprised that CI is passing as the previous commit does not compile.
rkrux (Migrated from github.com) reviewed 2026-11-17 10:33:31 +00:00
rkrux (Migrated from github.com) commented 2026-11-17 10:33:31 +00:00

Will be able to check this after couple days.

Will be able to check this after couple days.
fanquake (Migrated from github.com) reviewed 2026-11-17 10:57:42 +00:00
fanquake (Migrated from github.com) commented 2026-11-17 10:57:42 +00:00

as the previous commit does not compile.

What failure are you seeing? adfcde180e seems to compile fine for me locally.

surprised that CI is passing

cc @maflcko

> as the previous commit does not compile. What failure are you seeing? adfcde180e5ba66c9390e63fd916efd6e07935c1 seems to compile fine for me locally. > surprised that CI is passing cc @maflcko
maflcko (Migrated from github.com) reviewed 2026-11-17 13:29:09 +00:00
maflcko (Migrated from github.com) commented 2026-11-17 13:29:09 +00:00

I think it compiles, because the decl exists twice?

git grep GetWalletPath f922025 -- '*.h'
f922025:src/wallet/wallet.h:util::Result<fs::path> GetWalletPath(const std::string& name);
f922025:src/wallet/walletutil.h:util::Result<fs::path> GetWalletPath(const std::string& name);

for me it compiles:

./build/bin/bitcoin-wallet -version |grep adfcde180e5b
Bitcoin Core bitcoin-wallet utility version v32.99.0-adfcde180e5b
I think it compiles, because the decl exists twice? ``` git grep GetWalletPath f922025 -- '*.h' f922025:src/wallet/wallet.h:util::Result<fs::path> GetWalletPath(const std::string& name); f922025:src/wallet/walletutil.h:util::Result<fs::path> GetWalletPath(const std::string& name); ``` for me it compiles: ``` ./build/bin/bitcoin-wallet -version |grep adfcde180e5b Bitcoin Core bitcoin-wallet utility version v32.99.0-adfcde180e5b
achow101 (Migrated from github.com) reviewed 2026-11-17 18:02:10 +00:00
achow101 (Migrated from github.com) commented 2026-11-17 18:02:10 +00:00

What failure are you seeing? adfcde1 seems to compile fine for me locally.

In file included from ../../src/wallet/init.cpp:22:
../../src/wallet/wallet.h:1117:24: error: redundant redeclaration of ‘util::Result<fs::path> wallet::GetWalletPath(const std::string&)’ in same scope [-Werror=redundant-decls]
 1117 | util::Result<fs::path> GetWalletPath(const std::string& name);
      |                        ^~~~~~~~~~~~~
In file included from ../../src/wallet/walletdb.h:14,
                 from ../../src/wallet/scriptpubkeyman.h:25,
                 from ../../src/wallet/wallet.h:38:
../../src/wallet/walletutil.h:85:24: note: previous declaration of ‘util::Result<fs::path> wallet::GetWalletPath(const std::string&)’
   85 | util::Result<fs::path> GetWalletPath(const std::string& name);
      |                        ^~~~~~~~~~~~~

Probably fails because I always use -DCMAKE_COMPILE_WARNING_AS_ERROR=ON

> What failure are you seeing? [adfcde1](https://github.com/bitcoin/bitcoin/commit/adfcde180e5ba66c9390e63fd916efd6e07935c1) seems to compile fine for me locally. ``` In file included from ../../src/wallet/init.cpp:22: ../../src/wallet/wallet.h:1117:24: error: redundant redeclaration of ‘util::Result<fs::path> wallet::GetWalletPath(const std::string&)’ in same scope [-Werror=redundant-decls] 1117 | util::Result<fs::path> GetWalletPath(const std::string& name); | ^~~~~~~~~~~~~ In file included from ../../src/wallet/walletdb.h:14, from ../../src/wallet/scriptpubkeyman.h:25, from ../../src/wallet/wallet.h:38: ../../src/wallet/walletutil.h:85:24: note: previous declaration of ‘util::Result<fs::path> wallet::GetWalletPath(const std::string&)’ 85 | util::Result<fs::path> GetWalletPath(const std::string& name); | ^~~~~~~~~~~~~ ``` Probably fails because I always use `-DCMAKE_COMPILE_WARNING_AS_ERROR=ON`
maflcko (Migrated from github.com) reviewed 2026-11-17 18:11:53 +00:00
maflcko (Migrated from github.com) commented 2026-11-17 18:11:53 +00:00

Ah, the CI and I use clang, which doesn't detect this.

Ah, the CI and I use clang, which doesn't detect this.
DrahtBot commented 2026-11-20 22:57:53 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux (Migrated from github.com) reviewed 2026-11-23 09:42:33 +00:00
rkrux (Migrated from github.com) commented 2026-11-23 09:42:33 +00:00

This should be in the previous commit

Done.

> This should be in the previous commit Done.
rkrux commented 2026-11-23 09:54:18 +00:00 (Migrated from github.com)

Rebased over master to fix conflicts with #36087.

Rebased over master to fix conflicts with #36087.
achow101 commented 2026-11-23 21:23:54 +00:00 (Migrated from github.com)
ACK 9fd8e543b3ceed08a4bb8ce3d8d342195403056e
maflcko commented 2026-11-24 13:13:48 +00:00 (Migrated from github.com)

review ACK 9fd8e543b3 🥗

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK 9fd8e543b3ceed08a4bb8ce3d8d342195403056e 🥗
NpOxjC6hlY0eU1ALpaDJMeqcXKUbtj1qfYSL0fWGyPUooGBsIq7Ve3ac4F0t6z8ifjvVKhigmOthb92XQ9vrCg==
review ACK 9fd8e543b3ceed08a4bb8ce3d8d342195403056e 🥗 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK 9fd8e543b3ceed08a4bb8ce3d8d342195403056e 🥗 NpOxjC6hlY0eU1ALpaDJMeqcXKUbtj1qfYSL0fWGyPUooGBsIq7Ve3ac4F0t6z8ifjvVKhigmOthb92XQ9vrCg== ``` </details>
furszy commented 2026-11-24 20:24:41 +00:00 (Migrated from github.com)

#34193 😭. Painful rebase.

#34193 😭. Painful rebase.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!34909
No description provided.