23 g_misc_warnings = warning;
28 fLargeWorkForkFound = flag;
33 return fLargeWorkForkFound;
38 fLargeWorkInvalidChainFound = flag;
43 std::vector<bilingual_str> warnings_verbose;
48 if (!CLIENT_VERSION_IS_RELEASE) {
50 "This is a pre-release test build - use at your own risk - do not "
51 "use for mining or merchant applications");
52 warnings_verbose.emplace_back(warnings_concise);
56 if (!g_misc_warnings.empty()) {
57 warnings_concise = g_misc_warnings;
58 warnings_verbose.emplace_back(warnings_concise);
61 if (fLargeWorkForkFound) {
63 "Warning: The network does not appear to fully agree! Some miners "
64 "appear to be experiencing issues.");
65 warnings_verbose.emplace_back(warnings_concise);
66 }
else if (fLargeWorkInvalidChainFound) {
68 "Warning: We do not appear to fully agree with our peers! You may "
69 "need to upgrade, or other nodes may need to upgrade.");
70 warnings_verbose.emplace_back(warnings_concise);
77 return warnings_concise;
Different type to mark Mutex at global scope.
auto Join(const std::vector< T > &list, const BaseType &separator, UnaryOp unary_op) -> decltype(unary_op(list.at(0)))
Join a list of items.
bilingual_str _(const char *psz)
Translation function.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
bilingual_str GetWarnings(bool verbose)
Format a string that describes several potential problems detected by the core.
void SetfLargeWorkInvalidChainFound(bool flag)
static GlobalMutex g_warnings_mutex
void SetfLargeWorkForkFound(bool flag)
bool GetfLargeWorkForkFound()
void SetMiscWarning(const bilingual_str &warning)
static bilingual_str g_misc_warnings GUARDED_BY(g_warnings_mutex)