Dispatches validation event notifications to registered subscribers.

Synopsis

Declared in <validationinterface.h>

class ValidationSignals;

Member Functions

Name

Description

ValidationSignals [constructor]

Construct the signal dispatcher.

~ValidationSignals [destructor]

Destroy the dispatcher, releasing its internal state.

ActiveTipChange

Fire the ActiveTipChange event to all subscribers.

BlockChecked

Fire the BlockChecked event to all subscribers.

BlockConnected

Fire the BlockConnected event to all subscribers.

BlockDisconnected

Fire the BlockDisconnected event to all subscribers.

CallFunctionInValidationInterfaceQueue

Pushes a function to callback onto the notification queue, guaranteeing any callbacks generated prior to now are finished when the function is called.

CallbacksPending

Return the number of callbacks still queued for delivery.

ChainStateFlushed

Fire the ChainStateFlushed event to all subscribers.

FlushBackgroundCallbacks

Call any remaining callbacks on the calling thread

MempoolTransactionsRemovedForBlock

Fire the MempoolTransactionsRemovedForBlock event to all subscribers.

NewPoWValidBlock

Fire the NewPoWValidBlock event to all subscribers.

RegisterSharedValidationInterface

Register subscriber

RegisterValidationInterface

Register subscriber

SyncWithValidationInterfaceQueue

This is a synonym for the following, which asserts certain locks are not held: std::promise<void> promise; CallFunctionInValidationInterfaceQueue([&promise]{ promise.set_value(); }); promise.get_future().wait();

TransactionAddedToMempool

Fire the TransactionAddedToMempool event to all subscribers.

TransactionRemovedFromMempool

Fire the TransactionRemovedFromMempool event to all subscribers.

UnregisterAllValidationInterfaces

Unregister all subscribers

UnregisterSharedValidationInterface

Unregister subscriber

UnregisterValidationInterface

Unregister subscriber. DEPRECATED. This is not safe to use when the RPC server or main message handler thread is running.

UpdatedBlockTip

Fire the UpdatedBlockTip event to all subscribers.

Created with MrDocs