aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2020-01-07 13:47:20 +0000
committerAndrew Chow <achow101-github@achow101.com>2020-01-23 16:34:28 -0500
commitf5be479694d4dbaf59eef562d80fbeacb3bb7dc1 (patch)
tree6cfc5eb5d604be934db936c09ef6d495973a821b /src/wallet/test
parent95ca6aeec7b8d9dbf39e3a036a5c238634ce3793 (diff)
wallet: Improve CWallet:MarkDestinationsDirty
Diffstat (limited to 'src/wallet/test')
-rw-r--r--src/wallet/test/coinselector_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/test/coinselector_tests.cpp b/src/wallet/test/coinselector_tests.cpp
index 7e9f88f6b7..0e0f06c64c 100644
--- a/src/wallet/test/coinselector_tests.cpp
+++ b/src/wallet/test/coinselector_tests.cpp
@@ -78,6 +78,7 @@ static void add_coin(CWallet& wallet, const CAmount& nValue, int nAge = 6*24, bo
if (fIsFromMe)
{
wtx->m_amounts[CWalletTx::DEBIT].Set(ISMINE_SPENDABLE, 1);
+ wtx->m_is_cache_empty = false;
}
COutput output(wtx.get(), nInput, nAge, true /* spendable */, true /* solvable */, true /* safe */);
vCoins.push_back(output);