Skip to content

Commit

Permalink
Merge pull request #2410 from Pythonix/remove-locked-coins
Browse files Browse the repository at this point in the history
qt: Remove locked coins loop
  • Loading branch information
jamescowens authored Dec 10, 2021
2 parents 8f9b28b + 10bd0bd commit 713f441
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/qt/walletmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,17 +488,6 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
wallet->AvailableCoins(vCoins, true, nullptr, false);

LOCK2(cs_main, wallet->cs_wallet); // ListLockedCoins, mapWallet
std::vector<COutPoint> vLockedCoins;

// add locked coins
for (auto const& outpoint : vLockedCoins)
{
if (!wallet->mapWallet.count(outpoint.hash)) continue;
int nDepth = wallet->mapWallet[outpoint.hash].GetDepthInMainChain();
if (nDepth < 0) continue;
COutput out(&wallet->mapWallet[outpoint.hash], outpoint.n, nDepth);
vCoins.push_back(out);
}

for (auto const& out : vCoins)
{
Expand Down

0 comments on commit 713f441

Please sign in to comment.