mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Remove dead CheckForkWarningConditionsOnNewFork
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
static Mutex g_warnings_mutex;
|
||||
static bilingual_str g_misc_warnings GUARDED_BY(g_warnings_mutex);
|
||||
static bool fLargeWorkForkFound GUARDED_BY(g_warnings_mutex) = false;
|
||||
static bool fLargeWorkInvalidChainFound GUARDED_BY(g_warnings_mutex) = false;
|
||||
|
||||
void SetMiscWarning(const bilingual_str& warning)
|
||||
@@ -23,18 +22,6 @@ void SetMiscWarning(const bilingual_str& warning)
|
||||
g_misc_warnings = warning;
|
||||
}
|
||||
|
||||
void SetfLargeWorkForkFound(bool flag)
|
||||
{
|
||||
LOCK(g_warnings_mutex);
|
||||
fLargeWorkForkFound = flag;
|
||||
}
|
||||
|
||||
bool GetfLargeWorkForkFound()
|
||||
{
|
||||
LOCK(g_warnings_mutex);
|
||||
return fLargeWorkForkFound;
|
||||
}
|
||||
|
||||
void SetfLargeWorkInvalidChainFound(bool flag)
|
||||
{
|
||||
LOCK(g_warnings_mutex);
|
||||
@@ -60,10 +47,7 @@ bilingual_str GetWarnings(bool verbose)
|
||||
warnings_verbose.emplace_back(warnings_concise);
|
||||
}
|
||||
|
||||
if (fLargeWorkForkFound) {
|
||||
warnings_concise = _("Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.");
|
||||
warnings_verbose.emplace_back(warnings_concise);
|
||||
} else if (fLargeWorkInvalidChainFound) {
|
||||
if (fLargeWorkInvalidChainFound) {
|
||||
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.");
|
||||
warnings_verbose.emplace_back(warnings_concise);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user