mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-13 15:33:51 +02:00
1d1ae6f0c4wallet, test: Remove DuplicateMockDatabase (Ava Chow)57820c472bbench: Utilize setup() for WalletLoading and use a real database (Ava Chow)9a7604fd25bench: Use setup() in WalletMigration to prepare the legacy wallet (Ava Chow)426a94e7bdbench: Utilize setup() in WalletEncrypt to create the encryption wallet (Ava Chow)d672455d20bench: Utilitze setup() in WalletBalance for marking caches dirty (Ava Chow)61412ef887bench: Utilize setup() in WalletCreate to cleanup previous wallets (Ava Chow) Pull request description: Several of the wallet benchmarks have some setup or cleanup that needs to be done per run. Now that #34208 is merged, these can use `setup()`. Additionally, this allows for removing `DuplicateMockDatabase` in `WalletEncryptDescriptors`. This PR also removes `DuplicateMockDatabase` in `WalletLoadingDescriptors`. `DuplicateMockDatabase` was added here in #24924 as part of benchmark performance improvements. However, it does not appear to make a significant difference today. Removing `DuplicateMockDatabase` makes future database changes easier. In particular it should simplify #33032 and #33034, and any future changes that introduce sqlite features. ACKs for top commit: l0rinc: code review ACK1d1ae6f0c4furszy: Other than that, ACK1d1ae6f0c4sedited: ACK1d1ae6f0c4Tree-SHA512: 41130144972b759b401f990820eaf524d1f17f47d81bf1afea4a529d15a21d253521838a9e31df8f424996582b718a92634ab255204c6fce703b7e47a1d23670