4
4
5
5
#include < addresstype.h>
6
6
#include < bench/bench.h>
7
- #include < bitcoin-build-config.h> // IWYU pragma: keep
8
7
#include < consensus/amount.h>
9
8
#include < outputtype.h>
10
9
#include < primitives/transaction.h>
@@ -32,7 +31,7 @@ static void AddTx(CWallet& wallet)
32
31
wallet.AddToWallet (MakeTransactionRef (mtx), TxStateInactive{});
33
32
}
34
33
35
- static void WalletLoading (benchmark::Bench& bench, bool legacy_wallet )
34
+ static void WalletLoadingDescriptors (benchmark::Bench& bench)
36
35
{
37
36
const auto test_setup = MakeNoLogFileContext<TestingSetup>();
38
37
@@ -42,10 +41,7 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
42
41
43
42
// Setup the wallet
44
43
// Loading the wallet will also create it
45
- uint64_t create_flags = 0 ;
46
- if (!legacy_wallet) {
47
- create_flags = WALLET_FLAG_DESCRIPTORS;
48
- }
44
+ uint64_t create_flags = WALLET_FLAG_DESCRIPTORS;
49
45
auto database = CreateMockableWalletDatabase ();
50
46
auto wallet = TestLoadWallet (std::move (database), context, create_flags);
51
47
@@ -68,11 +64,5 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
68
64
});
69
65
}
70
66
71
- #ifdef USE_BDB
72
- static void WalletLoadingLegacy (benchmark::Bench& bench) { WalletLoading (bench, /* legacy_wallet=*/ true ); }
73
- BENCHMARK (WalletLoadingLegacy, benchmark::PriorityLevel::HIGH);
74
- #endif
75
-
76
- static void WalletLoadingDescriptors (benchmark::Bench& bench) { WalletLoading (bench, /* legacy_wallet=*/ false ); }
77
67
BENCHMARK (WalletLoadingDescriptors, benchmark::PriorityLevel::HIGH);
78
68
} // namespace wallet
0 commit comments