mirror of
https://github.com/monero-project/monero.git
synced 2025-08-19 05:48:01 -04:00
wallet: catch exceptions dealing with ringdb and warn
This commit is contained in:
parent
5710edf040
commit
5730049178
3 changed files with 48 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue