14 static std::string strMiscWarning
GUARDED_BY(cs_warnings);
15 static bool fLargeWorkForkFound
GUARDED_BY(cs_warnings) =
false;
16 static bool fLargeWorkInvalidChainFound
GUARDED_BY(cs_warnings) =
false;
20 strMiscWarning = strWarning;
25 fLargeWorkForkFound = flag;
30 return fLargeWorkForkFound;
35 fLargeWorkInvalidChainFound = flag;
39 std::string warnings_concise;
40 std::string warnings_verbose;
41 const std::string warning_separator =
"<hr />";
46 if (!CLIENT_VERSION_IS_RELEASE) {
48 "This is a pre-release test build - use at your own risk - do not " 49 "use for mining or merchant applications";
51 _(
"This is a pre-release test build - use at your own risk - do " 52 "not use for mining or merchant applications")
57 if (strMiscWarning !=
"") {
58 warnings_concise = strMiscWarning;
60 (warnings_verbose.empty() ?
"" : warning_separator) +
64 if (fLargeWorkForkFound) {
66 "Warning: The network does not appear to fully agree! Some miners " 67 "appear to be experiencing issues.";
69 (warnings_verbose.empty() ?
"" : warning_separator) +
70 _(
"Warning: The network does not appear to fully agree! Some " 71 "miners appear to be experiencing issues.")
73 }
else if (fLargeWorkInvalidChainFound) {
75 "Warning: We do not appear to fully agree with our peers! You may " 76 "need to upgrade, or other nodes may need to upgrade.";
78 (warnings_verbose.empty() ?
"" : warning_separator) +
79 _(
"Warning: We do not appear to fully agree with our peers! You " 80 "may need to upgrade, or other nodes may need to upgrade.")
85 return warnings_verbose;
87 return warnings_concise;
static RecursiveMutex cs_warnings
void SetfLargeWorkInvalidChainFound(bool flag)
bilingual_str _(const char *psz)
Translation function.
bool GetfLargeWorkForkFound()
void SetMiscWarning(const std::string &strWarning)
std::string GetWarnings(bool verbose)
Format a string that describes several potential problems detected by the core.
void SetfLargeWorkForkFound(bool flag)
static std::string strMiscWarning GUARDED_BY(cs_warnings)