From d66d420d5ca25fa0b884c3f9c93406cf79cd9634 Mon Sep 17 00:00:00 2001 From: jpk68 Date: Sat, 15 Aug 2026 13:56:55 -0400 Subject: [PATCH] simplewallet: don't exit when unable to get restore date --- src/simplewallet/simplewallet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 04bac1928..f84cfd054 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4323,13 +4323,13 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm) { m_restore_height = m_wallet->get_blockchain_height_by_date(year, month, day); success_msg_writer() << tr("Restore height is: ") << m_restore_height; + m_wallet->explicit_refresh_from_block_height(true); } catch (const std::runtime_error& e) { - fail_msg_writer() << e.what(); - return false; + message_writer(console_color_yellow, true) << tr("Could not connect to daemon to convert --restore-date into a restore height: ") << e.what(); + message_writer(console_color_yellow, true) << tr("Restore height is: ") << m_restore_height; } - m_wallet->explicit_refresh_from_block_height(true); } } else