v31.1-roots.1 · Commit 17: [PATCH 17/17] fix(release): preserve notice bytes and integrate nightly fixes
src/wallet/test/spend_tests.cpp
Before: src/wallet/test/spend_tests.cpp · After: src/wallet/test/spend_tests.cpp
File metadata
index c7f8f479f865f4fe93377df006837a79e8def727..37d07a1e04d940d92309d911195f46805a35ad5f 100644
Download original patch · Release notes
Diff rows 1–8 of 8. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/wallet/test/spend_tests.cpp
CHANGED
|
@@ -328,7 +328,7 @@ BOOST_FIXTURE_TEST_CASE(manual_coin_control_honors_selection_and_rbf, TestChain1
|
|
| 328 |
auto wallet{CreateSyncedWallet(*m_node.chain, WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return m_node.chainman->ActiveChain()), coinbaseKey)};
|
| 329 |
const auto coins{WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet).All())};
|
| 330 |
BOOST_REQUIRE(!coins.empty());
|
| 331 |
-
const COutput selected_coin{coins.front()};
|
| 332 |
const CTxDestination destination{PKHash{GenerateRandomKey().GetPubKey()}};
|
| 333 |
const CRecipient recipient{destination, COIN, /*subtract_fee=*/false};
|
| 334 |
|
|
|
|
| 328 |
auto wallet{CreateSyncedWallet(*m_node.chain, WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return m_node.chainman->ActiveChain()), coinbaseKey)};
|
| 329 |
const auto coins{WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet).All())};
|
| 330 |
BOOST_REQUIRE(!coins.empty());
|
| 331 |
+
const COutput& selected_coin{coins.front()};
|
| 332 |
const CTxDestination destination{PKHash{GenerateRandomKey().GetPubKey()}};
|
| 333 |
const CRecipient recipient{destination, COIN, /*subtract_fee=*/false};
|
| 334 |
|