Skip to content

Commit

Permalink
[Wallet] Unlock spent outputs
Browse files Browse the repository at this point in the history
backports bitcoin/bitcoin 54c3bb4
  • Loading branch information
random-zebra committed Oct 28, 2019
1 parent 18e23a4 commit 13f8d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet.cpp
Expand Up @@ -493,6 +493,8 @@ bool CWallet::IsSpent(const uint256& hash, unsigned int n) const
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 13f8d5a

Please sign in to comment.