Bitcoin ABC 0.30.7
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
BlockValidationOptions Class Reference

#include <validation.h>

Public Member Functions

 BlockValidationOptions (const Config &config)
 
 BlockValidationOptions (uint64_t _excessiveBlockSize, bool _checkPow=true, bool _checkMerkleRoot=true)
 
BlockValidationOptions withCheckPoW (bool _checkPoW=true) const
 
BlockValidationOptions withCheckMerkleRoot (bool _checkMerkleRoot=true) const
 
bool shouldValidatePoW () const
 
bool shouldValidateMerkleRoot () const
 
uint64_t getExcessiveBlockSize () const
 

Private Attributes

uint64_t excessiveBlockSize
 
bool checkPoW: 1
 
bool checkMerkleRoot: 1
 

Detailed Description

Definition at line 124 of file validation.h.

Constructor & Destructor Documentation

◆ BlockValidationOptions() [1/2]

BlockValidationOptions::BlockValidationOptions ( const Config config)
explicit

Definition at line 120 of file validation.cpp.

◆ BlockValidationOptions() [2/2]

BlockValidationOptions::BlockValidationOptions ( uint64_t  _excessiveBlockSize,
bool  _checkPow = true,
bool  _checkMerkleRoot = true 
)
inlineexplicit

Definition at line 133 of file validation.h.

Member Function Documentation

◆ getExcessiveBlockSize()

uint64_t BlockValidationOptions::getExcessiveBlockSize ( ) const
inline

Definition at line 154 of file validation.h.

Here is the caller graph for this function:

◆ shouldValidateMerkleRoot()

bool BlockValidationOptions::shouldValidateMerkleRoot ( ) const
inline

Definition at line 153 of file validation.h.

Here is the caller graph for this function:

◆ shouldValidatePoW()

bool BlockValidationOptions::shouldValidatePoW ( ) const
inline

Definition at line 152 of file validation.h.

Here is the caller graph for this function:

◆ withCheckMerkleRoot()

BlockValidationOptions BlockValidationOptions::withCheckMerkleRoot ( bool  _checkMerkleRoot = true) const
inline

Definition at line 146 of file validation.h.

◆ withCheckPoW()

BlockValidationOptions BlockValidationOptions::withCheckPoW ( bool  _checkPoW = true) const
inline

Definition at line 139 of file validation.h.

Member Data Documentation

◆ checkMerkleRoot

bool BlockValidationOptions::checkMerkleRoot
private

Definition at line 128 of file validation.h.

◆ checkPoW

bool BlockValidationOptions::checkPoW
private

Definition at line 127 of file validation.h.

◆ excessiveBlockSize

uint64_t BlockValidationOptions::excessiveBlockSize
private

Definition at line 126 of file validation.h.


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