Bitcoin
Functions | Variables
warnings.cpp File Reference
#include <sync.h>
#include <util/system.h>
#include <warnings.h>

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 (const std::string &strFor)
 

Variables

static RecursiveMutex cs_warnings
 

Function Documentation

◆ GetfLargeWorkForkFound()

bool GetfLargeWorkForkFound ( )

◆ 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

◆ GUARDED_BY()

static bool fLargeWorkInvalidChainFound GUARDED_BY ( cs_warnings  ) = false
static

◆ SetfLargeWorkForkFound()

void SetfLargeWorkForkFound ( bool  flag)

◆ SetfLargeWorkInvalidChainFound()

void SetfLargeWorkInvalidChainFound ( bool  flag)

◆ SetMiscWarning()

void SetMiscWarning ( const std::string &  strWarning)

Variable Documentation

◆ cs_warnings

RecursiveMutex cs_warnings
static