Skip to content

Commit 54c3bb4

Browse files
committed
wallet: Unlock spent outputs
1 parent 7eb7076 commit 54c3bb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ void CWallet::AddToSpends(const COutPoint& outpoint, const uint256& wtxid)
598598
{
599599
mapTxSpends.insert(std::make_pair(outpoint, wtxid));
600600

601+
setLockedCoins.erase(outpoint);
602+
601603
std::pair<TxSpends::iterator, TxSpends::iterator> range;
602604
range = mapTxSpends.equal_range(outpoint);
603605
SyncMetaData(range);

0 commit comments

Comments
 (0)