Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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, bool corruptionIn=false)
 
bool Invalid (bool ret=false)
 
bool Error ()
 
bool Abort (const std::string &msg)
 
bool IsValid ()
 
bool IsInvalid ()
 
bool IsError ()
 
bool IsInvalid (int &nDoSOut)
 
bool CorruptionPossible ()
 

Private Types

enum  mode_state { MODE_VALID, MODE_INVALID, MODE_ERROR }
 

Private Attributes

enum CValidationState::mode_state mode
 
int nDoS
 
bool corruptionPossible
 

Detailed Description

Capture information about block/transaction validation.

Definition at line 1907 of file main.h.

Member Enumeration Documentation

Enumerator
MODE_VALID 
MODE_INVALID 
MODE_ERROR 

Definition at line 1909 of file main.h.

Constructor & Destructor Documentation

CValidationState::CValidationState ( )
inline

Definition at line 1917 of file main.h.

Member Function Documentation

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

Definition at line 1933 of file main.h.

bool CValidationState::CorruptionPossible ( )
inline

Definition at line 1953 of file main.h.

bool CValidationState::DoS ( int  level,
bool  ret = false,
bool  corruptionIn = false 
)
inline

Definition at line 1918 of file main.h.

bool CValidationState::Error ( )
inline

Definition at line 1929 of file main.h.

bool CValidationState::Invalid ( bool  ret = false)
inline

Definition at line 1926 of file main.h.

bool CValidationState::IsError ( )
inline

Definition at line 1943 of file main.h.

bool CValidationState::IsInvalid ( )
inline

Definition at line 1940 of file main.h.

bool CValidationState::IsInvalid ( int &  nDoSOut)
inline

Definition at line 1946 of file main.h.

bool CValidationState::IsValid ( )
inline

Definition at line 1937 of file main.h.

Member Data Documentation

bool CValidationState::corruptionPossible
private

Definition at line 1915 of file main.h.

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

Definition at line 1914 of file main.h.


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