diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-05-25 14:27:58 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-05-25 14:27:58 +0100 |
commit | 54c3bb4cf805ccee91efb9f8cdadea87e0797989 (patch) | |
tree | 017e2ee6a6d2d67f9a4cd0014e725eaa5c057c0c /src/wallet | |
parent | 7eb7076f70078c06bef9752f22acf92fd86e616a (diff) |
wallet: Unlock spent outputs
Diffstat (limited to 'src/wallet')
-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 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); |