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

#include <preconsensus.h>

Inheritance diagram for PreConsensusPolicy:
[legend]
Collaboration diagram for PreConsensusPolicy:
[legend]

Public Member Functions

 PreConsensusPolicy (const avalanche::Processor &avalanche, const CBlockIndex &blockIndex, const CBlock &block, const CTxMemPool *mempool)
 
bool operator() (BlockPolicyValidationState &state) override EXCLUSIVE_LOCKS_REQUIRED(m_mempool -> cs)
 
- Public Member Functions inherited from ParkingPolicy
virtual ~ParkingPolicy ()
 
virtual bool operator() (BlockPolicyValidationState &state)=0
 

Private Attributes

const avalanche::Processorm_avalanche
 
const CBlockm_block
 
const CBlockIndexm_blockIndex
 
const CTxMemPoolm_mempool
 

Detailed Description

Definition at line 21 of file preconsensus.h.

Constructor & Destructor Documentation

◆ PreConsensusPolicy()

PreConsensusPolicy::PreConsensusPolicy ( const avalanche::Processor avalanche,
const CBlockIndex blockIndex,
const CBlock block,
const CTxMemPool mempool 
)
inline

Definition at line 29 of file preconsensus.h.

Member Function Documentation

◆ operator()()

bool PreConsensusPolicy::operator() ( BlockPolicyValidationState state) -> cs)
overridevirtual

Implements ParkingPolicy.

Definition at line 11 of file preconsensus.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_avalanche

const avalanche::Processor& PreConsensusPolicy::m_avalanche
private

Definition at line 23 of file preconsensus.h.

◆ m_block

const CBlock& PreConsensusPolicy::m_block
private

Definition at line 24 of file preconsensus.h.

◆ m_blockIndex

const CBlockIndex& PreConsensusPolicy::m_blockIndex
private

Definition at line 25 of file preconsensus.h.

◆ m_mempool

const CTxMemPool* PreConsensusPolicy::m_mempool
private

Definition at line 26 of file preconsensus.h.


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