Bitcoin ABC 0.30.5
P2P Digital Currency
Functions | Variables
warnings.cpp File Reference
#include <warnings.h>
#include <clientversion.h>
#include <common/system.h>
#include <sync.h>
#include <util/string.h>
#include <util/translation.h>
#include <vector>
Include dependency graph for warnings.cpp:

Go to the source code of this file.

Functions

static bilingual_str g_misc_warnings GUARDED_BY (g_warnings_mutex) = false
 
void SetMiscWarning (const bilingual_str &warning)
 
void SetfLargeWorkForkFound (bool flag)
 
bool GetfLargeWorkForkFound ()
 
void SetfLargeWorkInvalidChainFound (bool flag)
 
bilingual_str GetWarnings (bool verbose)
 Format a string that describes several potential problems detected by the core. More...
 

Variables

static GlobalMutex g_warnings_mutex
 

Function Documentation

◆ GetfLargeWorkForkFound()

bool GetfLargeWorkForkFound ( )

Definition at line 31 of file warnings.cpp.

Here is the caller graph for this function:

◆ GetWarnings()

bilingual_str GetWarnings ( bool  verbose)

Format a string that describes several potential problems detected by the core.

Parameters
[in]verbosebool
  • if true, get all warnings separated by
  • if false, get the most important warning
Returns
the warning string This function only returns the highest priority warning of the set selected by strFor.

Definition at line 41 of file warnings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GUARDED_BY()

static bool fLargeWorkInvalidChainFound GUARDED_BY ( g_warnings_mutex  ) = false
static

◆ SetfLargeWorkForkFound()

void SetfLargeWorkForkFound ( bool  flag)

Definition at line 26 of file warnings.cpp.

Here is the caller graph for this function:

◆ SetfLargeWorkInvalidChainFound()

void SetfLargeWorkInvalidChainFound ( bool  flag)

Definition at line 36 of file warnings.cpp.

Here is the caller graph for this function:

◆ SetMiscWarning()

void SetMiscWarning ( const bilingual_str warning)

Definition at line 21 of file warnings.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ g_warnings_mutex

GlobalMutex g_warnings_mutex
static

Definition at line 16 of file warnings.cpp.