25 g_misc_warnings = warning;
30 fLargeWorkForkFound = flag;
35 return fLargeWorkForkFound;
40 fLargeWorkInvalidChainFound = flag;
45 std::vector<bilingual_str> warnings_verbose;
50 if (!CLIENT_VERSION_IS_RELEASE) {
52 "This is a pre-release test build - use at your own risk - do not "
53 "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) {
65 "Warning: The network does not appear to fully agree! Some miners "
66 "appear to be experiencing issues.");
67 warnings_verbose.emplace_back(warnings_concise);
68 }
else if (fLargeWorkInvalidChainFound) {
70 "Warning: We do not appear to fully agree with our peers! You may "
71 "need to upgrade, or other nodes may need to upgrade.");
72 warnings_verbose.emplace_back(warnings_concise);
79 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)