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

#include <validationinterface.h>

Public Member Functions

void RegisterBackgroundSignalScheduler (CScheduler &scheduler)
 Register a CScheduler to give callbacks which should run in the background (may only be called once) More...
 
void UnregisterBackgroundSignalScheduler ()
 Unregister a CScheduler to give callbacks which should run in the background - these callbacks will now be dropped! More...
 
void FlushBackgroundCallbacks ()
 Call any remaining callbacks on the calling thread. More...
 
size_t CallbacksPending ()
 
void UpdatedBlockTip (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)
 
void TransactionAddedToMempool (const NewMempoolTransactionInfo &, uint64_t mempool_sequence)
 
void TransactionRemovedFromMempool (const CTransactionRef &, MemPoolRemovalReason, uint64_t mempool_sequence)
 
void MempoolTransactionsRemovedForBlock (const std::vector< RemovedMempoolTransactionInfo > &, unsigned int nBlockHeight)
 
void BlockConnected (ChainstateRole, const std::shared_ptr< const CBlock > &, const CBlockIndex *pindex)
 
void BlockDisconnected (const std::shared_ptr< const CBlock > &, const CBlockIndex *pindex)
 
void ChainStateFlushed (ChainstateRole, const CBlockLocator &)
 
void BlockChecked (const CBlock &, const BlockValidationState &)
 
void NewPoWValidBlock (const CBlockIndex *, const std::shared_ptr< const CBlock > &)
 

Private Member Functions

friend void ::RegisterSharedValidationInterface (std::shared_ptr< CValidationInterface >)
 
friend void ::UnregisterValidationInterface (CValidationInterface *)
 
friend void ::UnregisterAllValidationInterfaces ()
 
friend void ::CallFunctionInValidationInterfaceQueue (std::function< void()> func)
 

Private Attributes

std::unique_ptr< MainSignalsImplm_internals
 

Detailed Description

Definition at line 193 of file validationinterface.h.

Member Function Documentation

◆ BlockChecked()

void CMainSignals::BlockChecked ( const CBlock block,
const BlockValidationState state 
)

Definition at line 266 of file validationinterface.cpp.

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

◆ BlockConnected()

void CMainSignals::BlockConnected ( ChainstateRole  role,
const std::shared_ptr< const CBlock > &  pblock,
const CBlockIndex pindex 
)

Definition at line 229 of file validationinterface.cpp.

Here is the call graph for this function:

◆ BlockDisconnected()

void CMainSignals::BlockDisconnected ( const std::shared_ptr< const CBlock > &  pblock,
const CBlockIndex pindex 
)

Definition at line 248 of file validationinterface.cpp.

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

◆ CallbacksPending()

size_t CMainSignals::CallbacksPending ( )

Definition at line 117 of file validationinterface.cpp.

◆ ChainStateFlushed()

void CMainSignals::ChainStateFlushed ( ChainstateRole  role,
const CBlockLocator locator 
)

Definition at line 258 of file validationinterface.cpp.

Here is the call graph for this function:

◆ FlushBackgroundCallbacks()

void CMainSignals::FlushBackgroundCallbacks ( )

Call any remaining callbacks on the calling thread.

Definition at line 110 of file validationinterface.cpp.

Here is the caller graph for this function:

◆ MempoolTransactionsRemovedForBlock()

void CMainSignals::MempoolTransactionsRemovedForBlock ( const std::vector< RemovedMempoolTransactionInfo > &  txs_removed_for_block,
unsigned int  nBlockHeight 
)

Definition at line 238 of file validationinterface.cpp.

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

◆ NewPoWValidBlock()

void CMainSignals::NewPoWValidBlock ( const CBlockIndex pindex,
const std::shared_ptr< const CBlock > &  block 
)

Definition at line 272 of file validationinterface.cpp.

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

◆ RegisterBackgroundSignalScheduler()

void CMainSignals::RegisterBackgroundSignalScheduler ( CScheduler scheduler)

Register a CScheduler to give callbacks which should run in the background (may only be called once)

Definition at line 99 of file validationinterface.cpp.

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

◆ TransactionAddedToMempool()

void CMainSignals::TransactionAddedToMempool ( const NewMempoolTransactionInfo tx,
uint64_t  mempool_sequence 
)

Definition at line 209 of file validationinterface.cpp.

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

◆ TransactionRemovedFromMempool()

void CMainSignals::TransactionRemovedFromMempool ( const CTransactionRef tx,
MemPoolRemovalReason  reason,
uint64_t  mempool_sequence 
)

Definition at line 219 of file validationinterface.cpp.

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

◆ UnregisterBackgroundSignalScheduler()

void CMainSignals::UnregisterBackgroundSignalScheduler ( )

Unregister a CScheduler to give callbacks which should run in the background - these callbacks will now be dropped!

Definition at line 105 of file validationinterface.cpp.

Here is the caller graph for this function:

◆ UpdatedBlockTip()

void CMainSignals::UpdatedBlockTip ( const CBlockIndex pindexNew,
const CBlockIndex pindexFork,
bool  fInitialDownload 
)

Definition at line 195 of file validationinterface.cpp.

Here is the call graph for this function:

◆ void ::CallFunctionInValidationInterfaceQueue()

CMainSignals::void ::CallFunctionInValidationInterfaceQueue ( std::function< void()>  func)
private

◆ void ::RegisterSharedValidationInterface()

CMainSignals::void ::RegisterSharedValidationInterface ( std::shared_ptr< CValidationInterface )
private

◆ void ::UnregisterAllValidationInterfaces()

CMainSignals::void ::UnregisterAllValidationInterfaces ( )
private

◆ void ::UnregisterValidationInterface()

CMainSignals::void ::UnregisterValidationInterface ( CValidationInterface )
private

Member Data Documentation

◆ m_internals

std::unique_ptr<MainSignalsImpl> CMainSignals::m_internals
private

Definition at line 195 of file validationinterface.h.


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