aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-21 14:29:49 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-21 14:29:49 +0000
commit57300491781af47bdb58d9c8f9a82252564d35c6 (patch)
tree120d0325eb17d1a60508d53e1058714ae9b597e7 /src/simplewallet/simplewallet.cpp
parentMerge pull request #3429 (diff)
downloadmonero-57300491781af47bdb58d9c8f9a82252564d35c6.tar.xz
wallet: catch exceptions dealing with ringdb and warn
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 97dadb126..4e06c4692 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -3101,6 +3101,9 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
if (!m_trusted_daemon)
message_writer() << (boost::format(tr("Warning: using an untrusted daemon at %s, privacy will be lessened")) % m_wallet->get_daemon_address()).str();
+ if (m_wallet->get_ring_database().empty())
+ fail_msg_writer() << tr("Failed to initialize ring database: privacy enhancing features will be inactive");
+
m_wallet->callback(this);
return true;