diff options
| author | João Barbosa <[email protected]> | 2018-05-25 14:27:58 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-05-25 14:27:58 +0100 |
| commit | 54c3bb4cf805ccee91efb9f8cdadea87e0797989 (patch) | |
| tree | 017e2ee6a6d2d67f9a4cd0014e725eaa5c057c0c /src/wallet/wallet.cpp | |
| parent | Merge #12639: Reduce cs_main lock in listunspent (diff) | |
| download | discoin-54c3bb4cf805ccee91efb9f8cdadea87e0797989.tar.xz discoin-54c3bb4cf805ccee91efb9f8cdadea87e0797989.zip | |
wallet: Unlock spent outputs
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 9533e6ff5..d47b8865b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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); |