diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-04-12 10:57:50 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-04-12 10:57:50 +0200 |
| commit | 959f6ed9a5fe4dc0039ec48f5651177420b2d9a9 (patch) | |
| tree | 0fdf6b2c104c4dfcd664e6166a4c444a3aaccdb2 /src/simplewallet/simplewallet.cpp | |
| parent | 8361d60aef6e17908658128284899e3a11d808d4 (diff) | |
| parent | 57300491781af47bdb58d9c8f9a82252564d35c6 (diff) | |
| download | monzero-core-959f6ed9a5fe4dc0039ec48f5651177420b2d9a9.tar.gz monzero-core-959f6ed9a5fe4dc0039ec48f5651177420b2d9a9.tar.xz monzero-core-959f6ed9a5fe4dc0039ec48f5651177420b2d9a9.zip | |
Merge pull request #3461
57300491 wallet: catch exceptions dealing with ringdb and warn (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 3 |
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; |
