You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const command_line::arg_descriptor<bool> arg_allow_mismatched_daemon_version = {"allow-mismatched-daemon-version", sw::tr("Allow communicating with a daemon that uses a different RPC version"), false};
185
184
const command_line::arg_descriptor<uint64_t> arg_restore_height = {"restore-height", sw::tr("Restore from specific blockchain height"), 0};
186
185
const command_line::arg_descriptor<std::string> arg_restore_date = {"restore-date", sw::tr("Restore from estimated blockchain height on specified date"), ""};
187
186
const command_line::arg_descriptor<bool> arg_do_not_relay = {"do-not-relay", sw::tr("The newly created transaction will not be relayed to the monero network"), false};
if (!m_wallet->check_connection(version, NULL, 200000, &wallet_is_outdated, &daemon_is_outdated))
4790
4788
{
4791
4789
if (!silent)
4792
4790
{
4793
4791
if (m_wallet->is_offline())
4794
4792
fail_msg_writer() << tr("wallet failed to connect to daemon, because it is set to offline mode");
4793
+
elseif (wallet_is_outdated)
4794
+
fail_msg_writer() << tr("wallet failed to connect to daemon, because it is not up to date. ") <<
4795
+
tr("Please make sure you are running the latest wallet.");
4796
+
elseif (daemon_is_outdated)
4797
+
fail_msg_writer() << tr("wallet failed to connect to daemon: ") << m_wallet->get_daemon_address() << ". " <<
4798
+
tr("Daemon is not up to date. "
4799
+
"Please make sure the daemon is running the latest version or change the daemon address using the 'set_daemon' command.");
4795
4800
else
4796
4801
fail_msg_writer() << tr("wallet failed to connect to daemon: ") << m_wallet->get_daemon_address() << ". " <<
4797
4802
tr("Daemon either is not started or wrong port was passed. "
4798
4803
"Please make sure daemon is running or change the daemon address using the 'set_daemon' command.");
4799
4804
}
4800
4805
returnfalse;
4801
4806
}
4802
-
if (!m_allow_mismatched_daemon_version && ((*version >> 16) != CORE_RPC_VERSION_MAJOR))
4807
+
if (!m_wallet->is_mismatched_daemon_version_allowed() && ((*version >> 16) != CORE_RPC_VERSION_MAJOR))
4803
4808
{
4804
4809
if (!silent)
4805
4810
fail_msg_writer() << boost::format(tr("Daemon uses a different RPC major version (%u) than the wallet (%u): %s. Either update one of them, or use --allow-mismatched-daemon-version.")) % (*version>>16) % CORE_RPC_VERSION_MAJOR % m_wallet->get_daemon_address();
@@ -10629,7 +10634,6 @@ int main(int argc, char* argv[])
0 commit comments