Bitcoin ABC  0.24.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 180 of file validation.h.

Constructor & Destructor Documentation

◆ BlockValidationOptions() [1/2]

BlockValidationOptions::BlockValidationOptions ( const Config config)
explicit

Definition at line 146 of file validation.cpp.

◆ BlockValidationOptions() [2/2]

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

Definition at line 189 of file validation.h.

Member Function Documentation

◆ getExcessiveBlockSize()

uint64_t BlockValidationOptions::getExcessiveBlockSize ( ) const
inline

Definition at line 210 of file validation.h.

Here is the caller graph for this function:

◆ shouldValidateMerkleRoot()

bool BlockValidationOptions::shouldValidateMerkleRoot ( ) const
inline

Definition at line 209 of file validation.h.

Here is the caller graph for this function:

◆ shouldValidatePoW()

bool BlockValidationOptions::shouldValidatePoW ( ) const
inline

Definition at line 208 of file validation.h.

Here is the caller graph for this function:

◆ withCheckMerkleRoot()

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

Definition at line 202 of file validation.h.

Here is the caller graph for this function:

◆ withCheckPoW()

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

Definition at line 195 of file validation.h.

Here is the caller graph for this function:

Member Data Documentation

◆ checkMerkleRoot

bool BlockValidationOptions::checkMerkleRoot
private

Definition at line 184 of file validation.h.

◆ checkPoW

bool BlockValidationOptions::checkPoW
private

Definition at line 183 of file validation.h.

◆ excessiveBlockSize

uint64_t BlockValidationOptions::excessiveBlockSize
private

Definition at line 182 of file validation.h.


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