From fbc6bb8e8310ddf12e675d698cda3bdae4f361b8 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Fri, 22 Mar 2019 00:24:55 -0400 Subject: bitcoin-wallet tool: Drop MakeChain calls Pass null Chain interface pointer to CWallet. This is needed to drop libbitcoin_server dependency and avoid linking node code. --- src/bench/coin_selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bench/coin_selection.cpp') diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 74641191a..f2ab03e20 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -29,7 +29,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector> wtxs; LOCK(wallet.cs_wallet); @@ -61,7 +61,7 @@ static void CoinSelection(benchmark::State& state) typedef std::set CoinSet; static auto testChain = interfaces::MakeChain(); -static const CWallet testWallet(*testChain, WalletLocation(), WalletDatabase::CreateDummy()); +static const CWallet testWallet(testChain.get(), WalletLocation(), WalletDatabase::CreateDummy()); std::vector> wtxn; // Copied from src/wallet/test/coinselector_tests.cpp -- cgit v1.2.3