wallet: Unlock spent outputs

This commit is contained in:
João Barbosa 2018-05-25 14:27:58 +01:00
parent 7eb7076f70
commit 54c3bb4cf8

View File

@ -598,6 +598,8 @@ void CWallet::AddToSpends(const COutPoint& outpoint, const uint256& wtxid)
{
mapTxSpends.insert(std::make_pair(outpoint, wtxid));
setLockedCoins.erase(outpoint);
std::pair<TxSpends::iterator, TxSpends::iterator> range;
range = mapTxSpends.equal_range(outpoint);
SyncMetaData(range);