achow101
commented at 4:45 pm on June 17, 2020:
member
Instead of having Create, CreateMock, and CreateDummy being static functions in BerkeleyDatabase, move these to standalone functions in walletdb.cpp. This prepares us for having different WalletDatabase classes.
Part of #18971. This was originally one commit but has been split into 3 to make it (hopefully) easier to review.
Add Create*WalletDatabase functions
These functions doing the same things as WalletDatabase::Create,
CreateMock, and CreateDummy
45c08f8a7b
scripted-diff: Replace WalletDatabase::Create* with CreateWalletDatabase
-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-
d6045d0ac6
Remove WalletDatabase::Create, CreateMock, and CreateDummy
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase,
and CreateDummyWalletDatabase
da7a83c5ee
achow101 force-pushed
on Jun 17, 2020
DrahtBot added the label
GUI
on Jun 17, 2020
DrahtBot added the label
Tests
on Jun 17, 2020
DrahtBot added the label
Wallet
on Jun 17, 2020
MarcoFalke removed the label
GUI
on Jun 17, 2020
MarcoFalke removed the label
Tests
on Jun 17, 2020
MarcoFalke
commented at 8:44 pm on June 17, 2020:
member
DrahtBot
commented at 11:13 pm on June 17, 2020:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
#19216 (wallet: Remove first parameter to ScanForWalletTransactions start_hash by pstratem)
#19137 (wallettool: Add dump and createfromdump commands by achow101)
#19102 (wallet: Introduce and use DummyDatabase instead of dummy BerkeleyDatabase by achow101)
#19099 (refactor: Move wallet methods out of chain.h and node.h by ryanofsky)
#19098 (test: Remove duplicate NodeContext hacks by ryanofsky)
#19077 (wallet: Add sqlite as an alternative wallet database and use it for new descriptor wallets by achow101)
#18971 (wallet: Refactor the classes in wallet/db.{cpp/h} by achow101)
#18354 (Use shared pointers only in validation interface by bvbfan)
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.
MarcoFalke added the label
Refactoring
on Jun 18, 2020
ryanofsky approved
ryanofsky
commented at 8:26 pm on June 18, 2020:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-12-18 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me