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

Method unlockWallet

src/qt/walletview.cpp:241–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void WalletView::unlockWallet()
242{
243 // Unlock wallet when requested by wallet model
244 if (walletModel->getEncryptionStatus() == WalletModel::Locked) {
245 AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
246 dlg.setModel(walletModel);
247 // A modal dialog must be synchronous here as expected
248 // in the WalletModel::requestUnlock() function.
249 dlg.exec();
250 }
251}
252
253void WalletView::usedSendingAddresses()
254{

Callers

nothing calls this directly

Calls 3

getEncryptionStatusMethod · 0.80
execMethod · 0.80
setModelMethod · 0.45

Tested by

no test coverage detected