aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorjcktm <kitten@protonmail.com>2018-04-19 12:17:45 +1000
committerjcktm <kitten@protonmail.com>2018-05-15 15:28:42 +1000
commit89e51ecd38e6958f9de8431c2c95dc76e9b246cd (patch)
tree3ac8e32e265b257902e5c0894ac89931ab77b4b5 /src/simplewallet
parentMerge pull request #3794 (diff)
downloadmonero-89e51ecd38e6958f9de8431c2c95dc76e9b246cd.tar.xz
simple-wallet-cli: Add warnings about inaccurate balances to to watch-only wallet
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 639b394f3..3a13181ba 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -3923,6 +3923,8 @@ bool simple_wallet::show_balance_unlocked(bool detailed)
std::string extra;
if (m_wallet->has_multisig_partial_key_images())
extra = tr(" (Some owned outputs have partial key images - import_multisig_info needed)");
+ else if (m_wallet->has_unknown_key_images())
+ extra += tr(" (Some owned outputs have missing key images - import_key_images needed)");
success_msg_writer() << tr("Currently selected account: [") << m_current_subaddress_account << tr("] ") << m_wallet->get_subaddress_label({m_current_subaddress_account, 0});
const std::string tag = m_wallet->get_account_tags().second[m_current_subaddress_account];
success_msg_writer() << tr("Tag: ") << (tag.empty() ? std::string{tr("(No tag assigned)")} : tag);