From 10bd0bd2ece148cdf854baed207fb69011cde515 Mon Sep 17 00:00:00 2001 From: pythonix <9782029+Pythonix@users.noreply.github.com> Date: Thu, 9 Dec 2021 23:53:43 -0500 Subject: [PATCH] Remove locked coins loop --- src/qt/walletmodel.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index b8cd2f458b..f8c8e167a9 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -488,17 +488,6 @@ void WalletModel::listCoins(std::map >& mapCoins) wallet->AvailableCoins(vCoins, true, nullptr, false); LOCK2(cs_main, wallet->cs_wallet); // ListLockedCoins, mapWallet - std::vector 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) {