Skip to content

Commit

Permalink
wallet: Unlock spent outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed May 25, 2018
1 parent 7eb7076 commit 54c3bb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 54c3bb4

Please sign in to comment.