aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-16 14:15:52 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-16 14:15:52 -0500
commit9226acca4be7ed920e82172011c02975ff3edb62 (patch)
tree5d62ed798ce7b2ad6ada134d3de4cba659fb5b01 /src/wallet/wallet2.cpp
parentMerge pull request #3798 (diff)
parentsimple-wallet-cli: Add warnings about inaccurate balances to to watch-only wa... (diff)
downloadmonero-9226acca4be7ed920e82172011c02975ff3edb62.tar.xz
Merge pull request #3804
89e51ec simple-wallet-cli: Add warnings about inaccurate balances to to watch-only wallet (jcktm)
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 bc2555a0b..617fb9a87 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3624,6 +3624,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)