42 std::string strStatusBar;
45 const std::string uiAlertSeperator =
"<hr />";
50 strStatusBar =
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications";
51 strGUI =
_(
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
55 strStatusBar = strRPC = strGUI =
"testsafemode enabled";
61 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) +
strMiscWarning;
66 strStatusBar = strRPC =
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.";
67 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) +
_(
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.");
71 strStatusBar = strRPC =
"Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.";
72 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.");
77 else if (strFor ==
"statusbar")
79 else if (strFor ==
"rpc")
81 assert(!
"GetWarnings(): invalid parameter");
bool GetBoolArg(const std::string &strArg, bool fDefault)
Return boolean argument or default value.
assert(len-trim+(2 *lenIndices)<=WIDTH)
std::string GetWarnings(const std::string &strFor)
Format a string that describes several potential problems detected by the core.
bool fLargeWorkInvalidChainFound
CCriticalSection cs_warnings
void SetfLargeWorkInvalidChainFound(bool flag)
#define CLIENT_VERSION_IS_RELEASE
std::string strMiscWarning
bool GetfLargeWorkForkFound()
void SetMiscWarning(const std::string &strWarning)
void SetfLargeWorkForkFound(bool flag)
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
Wrapped boost mutex: supports recursive locking, but no waiting TODO: We should move away from using ...