Merge pull request #11119

d66d420 simplewallet: don't exit when unable to get restore date (jpk68)

ACKs: selsta, SNeedlewoods
This commit is contained in:
tobtoht
2026-08-23 07:41:01 +00:00
+3 -3
View File
@@ -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