Make time warning correct for any HAC

This commit is contained in:
Duke
2024-10-22 08:50:39 -04:00
parent 65568d5738
commit d8a799abe3

View File

@@ -71,11 +71,11 @@ void CTimeWarning::Warn(size_t peersAhead, size_t peersBehind)
{ {
std::string strMessage; std::string strMessage;
if (peersBehind >= TIMEDATA_WARNING_MAJORITY) { if (peersBehind >= TIMEDATA_WARNING_MAJORITY) {
strMessage = _("Warning: Your computer's date and time may be ahead of the rest of the network! If your clock is wrong Hush will not work properly."); strMessage = _("Warning: Your computer's date and time may be ahead of the rest of the network! If your clock is wrong this node will not work properly.");
} else if (peersAhead >= TIMEDATA_WARNING_MAJORITY) { } else if (peersAhead >= TIMEDATA_WARNING_MAJORITY) {
strMessage = _("Warning: Your computer's date and time may be behind the rest of the network! If your clock is wrong Hush will not work properly."); strMessage = _("Warning: Your computer's date and time may be behind the rest of the network! If your clock is wrong this node will not work properly.");
} else { } else {
strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong Hush will not work properly."); strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong this node will not work properly.");
} }
LogPrintf("*** %s\n", strMessage); LogPrintf("*** %s\n", strMessage);
uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING); uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING);