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

Go to the source code of this file.

Functions

static std::string strMiscWarning GUARDED_BY (cs_warnings) = false
 
void SetMiscWarning (const std::string &strWarning)
 
void SetfLargeWorkForkFound (bool flag)
 
bool GetfLargeWorkForkFound ()
 
void SetfLargeWorkInvalidChainFound (bool flag)
 
std::string GetWarnings (bool verbose)
 Format a string that describes several potential problems detected by the core. More...
 

Variables

static RecursiveMutex cs_warnings
 

Function Documentation

◆ GetfLargeWorkForkFound()

bool GetfLargeWorkForkFound ( )

Definition at line 28 of file warnings.cpp.

Here is the caller graph for this function:

◆ GetWarnings()

std::string GetWarnings ( bool  verbose)

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

Parameters
[in]verbosebool
  • if true, get all warnings, translated (where possible), 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 38 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 ( cs_warnings  ) = false
static

◆ SetfLargeWorkForkFound()

void SetfLargeWorkForkFound ( bool  flag)

Definition at line 23 of file warnings.cpp.

Here is the caller graph for this function:

◆ SetfLargeWorkInvalidChainFound()

void SetfLargeWorkInvalidChainFound ( bool  flag)

Definition at line 33 of file warnings.cpp.

Here is the caller graph for this function:

◆ SetMiscWarning()

void SetMiscWarning ( const std::string &  strWarning)

Definition at line 18 of file warnings.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ cs_warnings

RecursiveMutex cs_warnings
static

Definition at line 13 of file warnings.cpp.