diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-09-28 16:50:18 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-03-11 21:54:44 +0000 |
commit | 16e57594556ac481a32f5d5ed1a988b2772ba804 (patch) | |
tree | 03db7347c7526c750f32adc0cc1621e632ab8d69 /src/bench | |
parent | 21693ff0b743f094e73111a81c1c86e2622d937c (diff) | |
download | bitcoin-16e57594556ac481a32f5d5ed1a988b2772ba804.tar.xz |
wallet: Refactor to use WalletLocation
Github-Pull: #14350
Rebased-From: 65f3672
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/coin_selection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 0a6f5d85ea..badc426b32 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -33,7 +33,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector<Ou // (https://github.com/bitcoin/bitcoin/issues/7883#issuecomment-224807484) static void CoinSelection(benchmark::State& state) { - const CWallet wallet("dummy", WalletDatabase::CreateDummy()); + const CWallet wallet(WalletLocation(), WalletDatabase::CreateDummy()); LOCK(wallet.cs_wallet); // Add coins. @@ -57,7 +57,7 @@ static void CoinSelection(benchmark::State& state) } typedef std::set<CInputCoin> CoinSet; -static const CWallet testWallet("dummy", WalletDatabase::CreateDummy()); +static const CWallet testWallet(WalletLocation(), WalletDatabase::CreateDummy()); std::vector<std::unique_ptr<CWalletTx>> wtxn; // Copied from src/wallet/test/coinselector_tests.cpp |