Bitcoin Core  0.19.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
BlockValidationState Class Reference

#include <validation.h>

Inheritance diagram for BlockValidationState:
Collaboration diagram for BlockValidationState:

Public Member Functions

bool Invalid (BlockValidationResult result, const std::string &reject_reason="", const std::string &debug_message="")
BlockValidationResult GetResult () const
- Public Member Functions inherited from ValidationState
virtual ~ValidationState ()=0
 ValidationState ()
bool Error (const std::string &reject_reason)
bool IsValid () const
bool IsInvalid () const
bool IsError () const
std::string GetRejectReason () const
std::string GetDebugMessage () const

Private Attributes

BlockValidationResult m_result = BlockValidationResult::BLOCK_RESULT_UNSET

Additional Inherited Members

- Protected Member Functions inherited from ValidationState
void Invalid (const std::string &reject_reason="", const std::string &debug_message="")

Detailed Description

Definition at line 130 of file validation.h.

Member Function Documentation

◆ GetResult()

BlockValidationResult BlockValidationState::GetResult ( ) const

Definition at line 141 of file validation.h.

Here is the caller graph for this function:

◆ Invalid()

bool BlockValidationState::Invalid ( BlockValidationResult  result,
const std::string &  reject_reason = "",
const std::string &  debug_message = "" 

Definition at line 134 of file validation.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_result

BlockValidationResult BlockValidationState::m_result = BlockValidationResult::BLOCK_RESULT_UNSET

Definition at line 132 of file validation.h.

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