Fabcoin Core  0.16.2
P2P Digital Currency
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

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
 
std::string strMiscWarning
 
bool fLargeWorkForkFound = false
 
bool fLargeWorkInvalidChainFound = false
 

Function Documentation

bool GetfLargeWorkForkFound ( )

Definition at line 28 of file warnings.cpp.

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

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

strFor can have three values:

  • "rpc": get critical warnings, which should put the client in safe mode if non-empty
  • "statusbar": get all warnings
  • "gui": get all warnings, translated (where possible) for GUI This function only returns the highest priority warning of the set 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:

void SetfLargeWorkForkFound ( bool  flag)

Definition at line 22 of file warnings.cpp.

void SetfLargeWorkInvalidChainFound ( bool  flag)

Definition at line 34 of file warnings.cpp.

void SetMiscWarning ( const std::string &  strWarning)

Definition at line 16 of file warnings.cpp.

Here is the caller graph for this function:

Variable Documentation

CCriticalSection cs_warnings

Definition at line 11 of file warnings.cpp.

bool fLargeWorkForkFound = false

Definition at line 13 of file warnings.cpp.

bool fLargeWorkInvalidChainFound = false

Definition at line 14 of file warnings.cpp.

std::string strMiscWarning

Definition at line 12 of file warnings.cpp.