BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Functions | Variables
warnings.cpp File Reference
#include <sync.h>
#include <clientversion.h>
#include <util.h>
#include <warnings.h>
Include dependency graph for warnings.cpp:

Go to the source code of this file.

Functions

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 (const std::string &strFor)
 Format a string that describes several potential problems detected by the core. More...
 

Variables

CCriticalSection cs_warnings
 

Function Documentation

◆ GetfLargeWorkForkFound()

bool GetfLargeWorkForkFound ( )

Definition at line 28 of file warnings.cpp.

◆ GetWarnings()

std::string GetWarnings ( const std::string &  strFor)

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

Parameters
[in]strForcan have the following values:
  • "statusbar": get the most important warning
  • "gui": get all warnings, translated (where possible) for GUI, separated by
Returns
the warning string selected by strFor

Definition at line 40 of file warnings.cpp.

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

◆ GUARDED_BY()

bool fLargeWorkInvalidChainFound GUARDED_BY ( cs_warnings  ) = false

◆ SetfLargeWorkForkFound()

void SetfLargeWorkForkFound ( bool  flag)

Definition at line 22 of file warnings.cpp.

◆ SetfLargeWorkInvalidChainFound()

void SetfLargeWorkInvalidChainFound ( bool  flag)

Definition at line 34 of file warnings.cpp.

◆ SetMiscWarning()

void SetMiscWarning ( const std::string &  strWarning)

Definition at line 16 of file warnings.cpp.

Variable Documentation

◆ cs_warnings

CCriticalSection cs_warnings

Definition at line 11 of file warnings.cpp.