17 static bool fLargeWorkInvalidChainFound
GUARDED_BY(g_warnings_mutex) =
false;
21 LOCK(g_warnings_mutex);
22 g_misc_warnings = warning;
27 LOCK(g_warnings_mutex);
28 fLargeWorkInvalidChainFound = flag;
34 std::vector<bilingual_str> warnings_verbose;
36 LOCK(g_warnings_mutex);
40 warnings_concise =
_(
"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
41 warnings_verbose.emplace_back(warnings_concise);
45 if (!g_misc_warnings.empty()) {
46 warnings_concise = g_misc_warnings;
47 warnings_verbose.emplace_back(warnings_concise);
50 if (fLargeWorkInvalidChainFound) {
51 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.");
52 warnings_verbose.emplace_back(warnings_concise);
59 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.
static Mutex g_warnings_mutex
static bilingual_str g_misc_warnings GUARDED_BY(g_warnings_mutex)