Skip to content

Commit 713f441

Browse files
authored
Merge pull request #2410 from Pythonix/remove-locked-coins
qt: Remove locked coins loop
2 parents 8f9b28b + 10bd0bd commit 713f441

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/qt/walletmodel.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -488,17 +488,6 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
488488
wallet->AvailableCoins(vCoins, true, nullptr, false);
489489

490490
LOCK2(cs_main, wallet->cs_wallet); // ListLockedCoins, mapWallet
491-
std::vector<COutPoint> vLockedCoins;
492-
493-
// add locked coins
494-
for (auto const& outpoint : vLockedCoins)
495-
{
496-
if (!wallet->mapWallet.count(outpoint.hash)) continue;
497-
int nDepth = wallet->mapWallet[outpoint.hash].GetDepthInMainChain();
498-
if (nDepth < 0) continue;
499-
COutput out(&wallet->mapWallet[outpoint.hash], outpoint.n, nDepth);
500-
vCoins.push_back(out);
501-
}
502491

503492
for (auto const& out : vCoins)
504493
{

0 commit comments

Comments
 (0)