14 #include <boost/foreach.hpp>
54 std::string strStatusBar;
57 const std::string uiAlertSeperator =
"<hr />";
62 strStatusBar =
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications";
63 strGUI =
_(
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
66 if (
GetBoolArg(
"-testsafemode", DEFAULT_TESTSAFEMODE))
67 strStatusBar = strRPC = strGUI =
"testsafemode enabled";
74 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) +
strMiscWarning;
80 strStatusBar = strRPC =
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.";
81 strGUI += (strGUI.empty() ?
"" : uiAlertSeperator) +
_(
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.");
86 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.";
87 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.");
95 const CAlert& alert = item.second;
106 else if (strFor ==
"statusbar")
108 else if (strFor ==
"rpc")
110 assert(!
"GetWarnings(): invalid parameter");
CCriticalSection cs_mapAlerts
map< uint256, CAlert > mapAlerts
An alert is a combination of a serialized CUnsignedAlert and a signature.
Wrapped boost mutex: supports recursive locking, but no waiting TODO: We should move away from using ...
#define CLIENT_VERSION_IS_RELEASE
Set to true for release, false for prerelease or test build.
bool GetBoolArg(const std::string &strArg, bool fDefault)
Return boolean argument or default value.
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result.
#define PAIRTYPE(t1, t2)
This is needed because the foreach macro can't get over the comma in pair<t1, t2>
void SetfLargeWorkInvalidChainFound(bool flag)
std::string strMiscWarning
void SetfLargeWorkForkFound(bool flag)
bool GetfLargeWorkForkFound()
std::string GetWarnings(const std::string &strFor)
Format a string that describes several potential problems detected by the core.
bool GetfLargeWorkInvalidChainFound()
void SetMiscWarning(const std::string &strWarning)
CCriticalSection cs_warnings
bool fLargeWorkInvalidChainFound