v31.1-roots.1 · Commit 17: [PATCH 17/17] fix(release): preserve notice bytes and integrate nightly fixes
src/wallet/test/wallet_tests.cpp
Before: src/wallet/test/wallet_tests.cpp · After: src/wallet/test/wallet_tests.cpp
File metadata
index 73e371b17072d5c17932925816f81f5c42e51fe0..d1e923e123d1b82f781eea984b4ca43fe9132313 100644
Download original patch · Release notes
Diff rows 1–11 of 11. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/wallet/test/wallet_tests.cpp
CHANGED
|
@@ -455,9 +455,9 @@ BOOST_FIXTURE_TEST_CASE(coin_control_interface_facts, TestChain100Setup)
|
|
|
455
455
|
CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey()));
|
|
456
456
|
auto wallet{std::shared_ptr<CWallet>{CreateSyncedWallet(*m_node.chain, WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return m_node.chainman->ActiveChain()), coinbaseKey).release()}};
|
|
457
457
|
const CFeeRate feerate{1000};
|
|
458
|
-
const auto available_coins{WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet, /*coin_control=*/nullptr, feerate).All())};
|
|
458
|
+
const auto available_coins{WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet, /*coinControl=*/nullptr, feerate).All())};
|
|
459
459
|
BOOST_REQUIRE(!available_coins.empty());
|
|
460
|
-
const COutput coin{available_coins.front()};
|
|
460
|
+
const COutput& coin{available_coins.front()};
|
|
461
461
|
|
|
462
462
|
WITH_LOCK(wallet->cs_wallet, wallet->LockCoin(coin.outpoint, /*persist=*/false));
|
|
463
463
|
WalletContext context;
|