Bitcoin Core  0.19.99
P2P Digital Currency
Functions | Variables
warnings.cpp File Reference
#include <warnings.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 29 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

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 ( 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 35 of file warnings.cpp.

Here is the caller graph for this function:

◆ SetMiscWarning()

void SetMiscWarning ( const std::string &  strWarning)

Definition at line 17 of file warnings.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ cs_warnings

RecursiveMutex cs_warnings
static

Definition at line 12 of file warnings.cpp.