aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
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/wallet/wallet2.cpp
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/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 6a37b59eb..6a77584f4 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3611,6 +3611,14 @@ bool wallet2::has_multisig_partial_key_images() const
return false;
}
+bool wallet2::has_unknown_key_images() const
+{
+ for (const auto &td: m_transfers)
+ if (!td.m_key_image_known)
+ return true;
+ return false;
+}
+
/*!
* \brief Rewrites to the wallet file for wallet upgrade (doesn't generate key, assumes it's already there)
* \param wallet_name Name of wallet file (should exist)