aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-05-25 14:27:58 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-05-25 14:27:58 +0100
commit54c3bb4cf805ccee91efb9f8cdadea87e0797989 (patch)
tree017e2ee6a6d2d67f9a4cd0014e725eaa5c057c0c /src/wallet
parent7eb7076f70078c06bef9752f22acf92fd86e616a (diff)
downloadbitcoin-54c3bb4cf805ccee91efb9f8cdadea87e0797989.tar.xz
wallet: Unlock spent outputs
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 9533e6ff56..d47b8865bc 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);