17 static bool fLargeWorkForkFound
GUARDED_BY(g_warnings_mutex) =
false;
18 static bool fLargeWorkInvalidChainFound
GUARDED_BY(g_warnings_mutex) =
false;
22 LOCK(g_warnings_mutex);
23 g_misc_warnings = warning;
28 LOCK(g_warnings_mutex);
29 fLargeWorkForkFound = flag;
34 LOCK(g_warnings_mutex);
35 return fLargeWorkForkFound;
40 LOCK(g_warnings_mutex);
41 fLargeWorkInvalidChainFound = flag;
47 std::vector<bilingual_str> warnings_verbose;
49 LOCK(g_warnings_mutex);
53 warnings_concise =
_(
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
54 warnings_verbose.emplace_back(warnings_concise);
58 if (!g_misc_warnings.empty()) {
59 warnings_concise = g_misc_warnings;
60 warnings_verbose.emplace_back(warnings_concise);
63 if (fLargeWorkForkFound) {
64 warnings_concise =
_(
"Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.");
65 warnings_verbose.emplace_back(warnings_concise);
66 }
else if (fLargeWorkInvalidChainFound) {
67 warnings_concise =
_(
"Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.");
68 warnings_verbose.emplace_back(warnings_concise);
75 return warnings_concise;
auto Join(const std::vector< T > &list, const BaseType &separator, UnaryOp unary_op) -> decltype(unary_op(list.at(0)))
Join a list of items.
void SetMiscWarning(const bilingual_str &warning)
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
#define CLIENT_VERSION_IS_RELEASE
void SetfLargeWorkInvalidChainFound(bool flag)
bilingual_str _(const char *psz)
Translation function.
bilingual_str GetWarnings(bool verbose)
Format a string that describes several potential problems detected by the core.
bool GetfLargeWorkForkFound()
static Mutex g_warnings_mutex
void SetfLargeWorkForkFound(bool flag)
static bilingual_str g_misc_warnings GUARDED_BY(g_warnings_mutex)