PIVX Core  5.6.99
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 AcceptedBlockHeader (const CBlockIndex *pindexNew)
 
void UpdatedBlockTip (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)
 
void TransactionAddedToMempool (const CTransactionRef &ptxn)
 
void TransactionRemovedFromMempool (const CTransactionRef &, MemPoolRemovalReason)
 
void BlockConnected (const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
 
void BlockDisconnected (const std::shared_ptr< const CBlock > &block, const uint256 &blockHash, int nBlockHeight, int64_t blockTime)
 
void SetBestChain (const CBlockLocator &)
 
void Broadcast (CConnman *connman)
 
void BlockChecked (const CBlock &, const CValidationState &)
 
void NotifyMasternodeListChanged (bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff)
 

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< MainSignalsInstancem_internals
 

Detailed Description

Definition at line 166 of file validationinterface.h.

Member Function Documentation

◆ AcceptedBlockHeader()

void CMainSignals::AcceptedBlockHeader ( const CBlockIndex pindexNew)

Definition at line 173 of file validationinterface.cpp.

Here is the call graph for this function:

◆ BlockChecked()

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

Definition at line 237 of file validationinterface.cpp.

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

◆ BlockConnected()

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

Definition at line 209 of file validationinterface.cpp.

◆ BlockDisconnected()

void CMainSignals::BlockDisconnected ( const std::shared_ptr< const CBlock > &  block,
const uint256 blockHash,
int  nBlockHeight,
int64_t  blockTime 
)

Definition at line 217 of file validationinterface.cpp.

Here is the call graph for this function:

◆ Broadcast()

void CMainSignals::Broadcast ( CConnman connman)

Definition at line 233 of file validationinterface.cpp.

◆ CallbacksPending()

size_t CMainSignals::CallbacksPending ( )

Definition at line 87 of file validationinterface.cpp.

Here is the caller graph for this function:

◆ FlushBackgroundCallbacks()

void CMainSignals::FlushBackgroundCallbacks ( )

Call any remaining callbacks on the calling thread.

Definition at line 81 of file validationinterface.cpp.

Here is the caller graph for this function:

◆ NotifyMasternodeListChanged()

void CMainSignals::NotifyMasternodeListChanged ( bool  undo,
const CDeterministicMNList oldMNList,
const CDeterministicMNListDiff diff 
)

Definition at line 243 of file validationinterface.cpp.

Here is the call 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 72 of file validationinterface.cpp.

Here is the caller graph for this function:

◆ SetBestChain()

void CMainSignals::SetBestChain ( const CBlockLocator locator)

Definition at line 225 of file validationinterface.cpp.

Here is the call graph for this function:

◆ TransactionAddedToMempool()

void CMainSignals::TransactionAddedToMempool ( const CTransactionRef ptxn)

Definition at line 195 of file validationinterface.cpp.

◆ TransactionRemovedFromMempool()

void CMainSignals::TransactionRemovedFromMempool ( const CTransactionRef ptx,
MemPoolRemovalReason  reason 
)

Definition at line 202 of file validationinterface.cpp.

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 77 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 181 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<MainSignalsInstance> CMainSignals::m_internals
private

Definition at line 168 of file validationinterface.h.


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