| 602 | } |
| 603 | |
| 604 | bool 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 | |
| 616 | bool WalletModel::isWalletEnabled() |
| 617 | { |
no test coverage detected