wallet: Improve CWallet:MarkDestinationsDirty

This commit is contained in:
João Barbosa
2020-01-07 13:47:20 +00:00
committed by Andrew Chow
parent 95ca6aeec7
commit f5be479694
3 changed files with 12 additions and 2 deletions

View File

@@ -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);