19 strMiscWarning = strWarning;
25 fLargeWorkForkFound = flag;
31 return fLargeWorkForkFound;
37 fLargeWorkInvalidChainFound = flag;
42 std::string strStatusBar;
44 const std::string uiAlertSeperator =
"<hr />";
49 strStatusBar =
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications";
50 strGUI =
_(
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
54 if (strMiscWarning !=
"")
56 strStatusBar = strMiscWarning;
57 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) + strMiscWarning;
60 if (fLargeWorkForkFound)
62 strStatusBar =
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.";
63 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) +
_(
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.");
65 else if (fLargeWorkInvalidChainFound)
67 strStatusBar =
"Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.";
68 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) +
_(
"Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.");
73 else if (strFor ==
"statusbar")
75 assert(!
"GetWarnings(): invalid parameter");
std::string GetWarnings(const std::string &strFor)
Format a string that describes several potential problems detected by the core.
CCriticalSection cs_warnings
#define CLIENT_VERSION_IS_RELEASE
void SetfLargeWorkInvalidChainFound(bool flag)
bool GetfLargeWorkForkFound()
std::string strMiscWarning GUARDED_BY(cs_warnings)
void SetMiscWarning(const std::string &strWarning)
void SetfLargeWorkForkFound(bool flag)
std::string _(const char *psz)
Translation function.