Skip to content

wallet, refactor: rename file from migrate to legacybdb - #34910

Closed
rkrux wants to merge 1 commit into
bitcoin:masterfrom
rkrux:legacy-bdb
Closed

rkrux wants to merge 1 commit into
bitcoin:masterfrom
rkrux:legacy-bdb

Conversation

@rkrux

@rkrux rkrux commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

The wallet/migrate.h|cpp file contain all the code related to the
Berkeley DB that was used in the legacy wallets. Although it's true
that this code is used only within the context of wallet migration
but the name of the file is not exact.

This patch renames the file to legacybdb so that the intent is clearer in the
call sites. I felt this rename might be necessary so that the name
doesn't conflict with the upcoming wallet/migration.h|cpp files in #34909.

@DrahtBot

DrahtBot commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34910.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #34909 (wallet, refactor: modularise wallet by extracting out legacy wallet migration by rkrux)

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.

@rkrux

rkrux commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Rebased over master to incorporate changes from #35227.

@kevkevinpal

Copy link
Copy Markdown
Contributor

Do you think it makes sense to rename it to migrate_legacybdb(.h|.cpp) instead, so we preserve the migrate wording?

@rkrux

rkrux commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

In #34909, migration.cpp|h files are added that covers all the migration workflow. I want to avoid having the migrate naming in these files because all the code here is within the context of legacy BDB, with the exception of couple comments that mention the migration workflow.
We have sqlite.cpp|h files in the wallet directory, it seemed consistent to me to have corresponding entries for BDB but with the legacy prefix appended so that it's clear that all this code is not used now.

The wallet/migrate.h|cpp file contain all the code related to the
Berkeley DB that was used in the legacy wallets. Although it's true
that this code is used only within the context of wallet migration
but the name of the file is not exact.

This patch renames the file to legacybdb so that the intent is clearer in the
call sites. I felt this rename might be necessary so that the name
doesn't conflict with the upcoming wallet/migration.h|cpp files in PR 34909.
@rkrux

rkrux commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

Rebased over master to incorporate changes from #34806.

@rkrux

rkrux commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Closing this PR in favour of #34909 after cherry-picking this commit there based on this review comment: #34909 (review).

@rkrux rkrux closed this Jun 15, 2026
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.

3 participants