MCPcopy Create free account
hub / github.com/ElementsProject/elements / listWalletDir

Method listWalletDir

src/qt/walletcontroller.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66std::map<std::string, bool> WalletController::listWalletDir() const
67{
68 QMutexLocker locker(&m_mutex);
69 std::map<std::string, bool> wallets;
70 for (const std::string& name : m_node.walletLoader().listWalletDir()) {
71 wallets[name] = false;
72 }
73 for (WalletModel* wallet_model : m_wallets) {
74 auto it = wallets.find(wallet_model->wallet().getWalletName());
75 if (it != wallets.end()) it->second = true;
76 }
77 return wallets;
78}
79
80void WalletController::closeWallet(WalletModel* wallet_model, QWidget* parent)
81{

Callers 1

createActionsMethod · 0.45

Calls 4

findMethod · 0.80
getWalletNameMethod · 0.45
walletMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected