message: [Net] Do not launch warning dialogs like crazy when the internal clock is not correct.
diff: @@ -852,10 +852,17 @@ void CheckOffsetDisconnectedPeers(const CNetAddr& ip)
  // clear the set
  setOffsetDisconnectedPeers.clear();
  // Trigger the warning
  - std::string strMessage = _("Warning: Peers are being disconnected due time differences. Please check that your computer's date and time are correct! If your clock is wrong PIVX Core will not work properly.");
  - strMiscWarning = strMessage;
  - LogPrintf("*** %s\n", strMessage);
  - uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_ERROR);
  + std::string strWarn1 = _("Peers are being disconnected due time differences.");
  + std::string strWarn2 = _("Please check that your computer's date and time are correct! If your clock is wrong PIVX Core will not work properly.");
  +
  + LogPrintf("*** Warning: %s %s\n", strWarn1, strWarn2);
  +
  + static int64_t nLastGUINotif = 0;
  + int64_t now = GetTime();
  + if (nLastGUINotif + 40 < now) { // Notify the GUI if needed.
  + nLastGUINotif = now;
  + uiInterface.ThreadSafeMessageBox(strprintf("%s\n\n%s", strWarn1, strWarn2), _("Warning"), CClientUIInterface::MSG_ERROR);
  + }
  }
  }
  