-
Notifications
You must be signed in to change notification settings - Fork 38.7k
wallet: BerkeleyDatabase make BerkeleyDatabase::Create, CreateMock, and CreateDummy non-static functions #19310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
These functions doing the same things as WalletDatabase::Create, CreateMock, and CreateDummy
-BEGIN VERIFY SCRIPT-
sed -i -e 's/WalletDatabase::Create(/CreateWalletDatabase(/g' `git grep -l "WalletDatabase::Create("`
sed -i -e 's/WalletDatabase::CreateDummy(/CreateDummyWalletDatabase(/g' `git grep -l "WalletDatabase::CreateDummy("`
sed -i -e 's/WalletDatabase::CreateMock(/CreateMockWalletDatabase(/g' `git grep -l "WalletDatabase::CreateMock("`
-END VERIFY SCRIPT-
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase, and CreateDummyWalletDatabase
55869ce to
da7a83c
Compare
|
ACK da7a83c 🎂 Show signature and timestampSignature: Timestamp of file with hash |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK da7a83c. Easy review, nice scripted-diff
Summary: These functions doing the same things as WalletDatabase::Create, CreateMock, and CreateDummy This is a backport of [[bitcoin/bitcoin#19310 | core#19310]] [1/3] bitcoin/bitcoin@45c08f8 Test Plan: `ninja` Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D9619
Summary:
```
-BEGIN VERIFY SCRIPT-
sed -i -e 's/WalletDatabase::Create(/CreateWalletDatabase(/g' `git grep -l "WalletDatabase::Create("`
sed -i -e 's/WalletDatabase::CreateDummy(/CreateDummyWalletDatabase(/g' `git grep -l "WalletDatabase::CreateDummy("`
sed -i -e 's/WalletDatabase::CreateMock(/CreateMockWalletDatabase(/g' `git grep -l "WalletDatabase::CreateMock("`
arc lint
-END VERIFY SCRIPT-
```
This is a partial backport of [[bitcoin/bitcoin#19310 | core#19310]] [2/3]
Can be compared with bitcoin/bitcoin@d6045d0
Backport note: I ran the script rather than cherry-picking the commit.
Depends on D9619
Test Plan: `ninja all check-all`
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D9620
Summary: These are superseded by CreateWalletDatabase, CreateMockWalletDatabase, and CreateDummyWalletDatabase This concludes backport of [[bitcoin/bitcoin#19310 | core#19310]] [3/3] bitcoin/bitcoin@da7a83c Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D9621
Instead of having
Create,CreateMock, andCreateDummybeing static functions inBerkeleyDatabase, move these to standalone functions inwalletdb.cpp. This prepares us for having differentWalletDatabaseclasses.Part of #18971. This was originally one commit but has been split into 3 to make it (hopefully) easier to review.