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

Method displayAddress

src/qt/walletmodel.cpp:604–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604bool WalletModel::displayAddress(std::string sAddress)
605{
606 CTxDestination dest = DecodeDestination(sAddress);
607 bool res = false;
608 try {
609 res = m_wallet->displayAddress(dest);
610 } catch (const std::runtime_error& e) {
611 QMessageBox::critical(nullptr, tr("Can't display address"), e.what());
612 }
613 return res;
614}
615
616bool WalletModel::isWalletEnabled()
617{

Callers 1

setInfoMethod · 0.45

Calls 1

DecodeDestinationFunction · 0.85

Tested by

no test coverage detected