Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Private Types | Private Attributes | List of all members
CValidationState Class Reference

Capture information about block/transaction validation. More...

#include <main.h>

Public Member Functions

 CValidationState ()
 
bool DoS (int level, bool ret=false, unsigned char chRejectCodeIn=0, std::string strRejectReasonIn="", bool corruptionIn=false)
 
bool Invalid (bool ret=false, unsigned char _chRejectCode=0, std::string _strRejectReason="")
 
bool Error (std::string strRejectReasonIn="")
 
bool Abort (const std::string &msg)
 
bool IsValid () const
 
bool IsInvalid () const
 
bool IsError () const
 
bool IsInvalid (int &nDoSOut) const
 
bool CorruptionPossible () const
 
unsigned char GetRejectCode () const
 
std::string GetRejectReason () const
 

Private Types

enum  mode_state { MODE_VALID, MODE_INVALID, MODE_ERROR }
 

Private Attributes

enum CValidationState::mode_state mode
 
int nDoS
 
std::string strRejectReason
 
unsigned char chRejectCode
 
bool corruptionPossible
 

Detailed Description

Capture information about block/transaction validation.

Definition at line 950 of file main.h.

Member Enumeration Documentation

Enumerator
MODE_VALID 
MODE_INVALID 
MODE_ERROR 

Definition at line 952 of file main.h.

Constructor & Destructor Documentation

CValidationState::CValidationState ( )
inline

Definition at line 962 of file main.h.

Member Function Documentation

bool CValidationState::Abort ( const std::string &  msg)
inline

Definition at line 985 of file main.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CValidationState::CorruptionPossible ( ) const
inline

Definition at line 1005 of file main.h.

Here is the caller graph for this function:

bool CValidationState::DoS ( int  level,
bool  ret = false,
unsigned char  chRejectCodeIn = 0,
std::string  strRejectReasonIn = "",
bool  corruptionIn = false 
)
inline

Definition at line 963 of file main.h.

Here is the caller graph for this function:

bool CValidationState::Error ( std::string  strRejectReasonIn = "")
inline

Definition at line 979 of file main.h.

Here is the caller graph for this function:

unsigned char CValidationState::GetRejectCode ( ) const
inline

Definition at line 1008 of file main.h.

Here is the caller graph for this function:

std::string CValidationState::GetRejectReason ( ) const
inline

Definition at line 1009 of file main.h.

Here is the caller graph for this function:

bool CValidationState::Invalid ( bool  ret = false,
unsigned char  _chRejectCode = 0,
std::string  _strRejectReason = "" 
)
inline

Definition at line 975 of file main.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CValidationState::IsError ( ) const
inline

Definition at line 995 of file main.h.

Here is the caller graph for this function:

bool CValidationState::IsInvalid ( ) const
inline

Definition at line 992 of file main.h.

Here is the caller graph for this function:

bool CValidationState::IsInvalid ( int &  nDoSOut) const
inline

Definition at line 998 of file main.h.

Here is the call graph for this function:

bool CValidationState::IsValid ( ) const
inline

Definition at line 989 of file main.h.

Here is the caller graph for this function:

Member Data Documentation

unsigned char CValidationState::chRejectCode
private

Definition at line 959 of file main.h.

bool CValidationState::corruptionPossible
private

Definition at line 960 of file main.h.

enum CValidationState::mode_state CValidationState::mode
private
int CValidationState::nDoS
private

Definition at line 957 of file main.h.

std::string CValidationState::strRejectReason
private

Definition at line 958 of file main.h.


The documentation for this class was generated from the following file: