Dogecoin Core  1.14.2
P2P Digital Currency
Functions
warnings.h File Reference
#include <stdlib.h>
#include <string>
Include dependency graph for warnings.h:
This graph shows which files directly or indirectly include this file:

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

Function Documentation

◆ GetfLargeWorkForkFound()

bool GetfLargeWorkForkFound ( )

Definition at line 33 of file warnings.cpp.

Here is the caller graph for this function:

◆ GetfLargeWorkInvalidChainFound()

bool GetfLargeWorkInvalidChainFound ( )

Definition at line 45 of file warnings.cpp.

◆ GetWarnings()

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

◆ SetfLargeWorkForkFound()

void SetfLargeWorkForkFound ( bool  flag)

Definition at line 27 of file warnings.cpp.

◆ SetfLargeWorkInvalidChainFound()

void SetfLargeWorkInvalidChainFound ( bool  flag)

Definition at line 39 of file warnings.cpp.

◆ SetMiscWarning()

void SetMiscWarning ( const std::string &  strWarning)

Definition at line 21 of file warnings.cpp.