7 #ifndef RAVEN_VALIDATIONINTERFACE_H 8 #define RAVEN_VALIDATIONINTERFACE_H 45 virtual void BlockConnected(
const std::shared_ptr<const CBlock> &block,
const CBlockIndex *pindex,
const std::vector<CTransactionRef> &txnConflicted) {}
88 void RegisterBackgroundSignalScheduler(
CScheduler& scheduler);
90 void UnregisterBackgroundSignalScheduler();
92 void FlushBackgroundCallbacks();
96 void BlockConnected(
const std::shared_ptr<const CBlock> &,
const CBlockIndex *pindex,
const std::vector<CTransactionRef> &);
100 void Broadcast(int64_t nBestBlockTime,
CConnman* connman);
111 #endif // RAVEN_VALIDATIONINTERFACE_H std::unique_ptr< MainSignalsInstance > m_internals
virtual void BlockChecked(const CBlock &, const CValidationState &)
Notifies listeners of a block validation result.
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
virtual void ResendWalletTransactions(int64_t nBestBlockTime, CConnman *connman)
Tells listeners to broadcast their data.
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr< const CBlock > &block)
Notifies listeners that a block which builds directly on our current tip has been received and connec...
virtual void SetBestChain(const CBlockLocator &locator)
Notifies listeners of the new active block chain on-disk.
std::shared_ptr< const CTransaction > CTransactionRef
virtual void NewAssetMessage(const CMessage &message)
virtual void BlockDisconnected(const std::shared_ptr< const CBlock > &block)
Notifies listeners of a block being disconnected.
virtual void Inventory(const uint256 &hash)
Notifies listeners about an inventory item being seen on the network.
void RegisterValidationInterface(CValidationInterface *pwalletIn)
Register a wallet to receive updates from core.
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
Notifies listeners of updated block chain tip.
CMainSignals & GetMainSignals()
virtual void BlockFound(const uint256 &hash)
The block chain is a tree shaped structure starting with the genesis block at the root...
void UnregisterAllValidationInterfaces()
Unregister all wallets from core.
virtual void TransactionAddedToMempool(const CTransactionRef &ptxn)
Notifies listeners of a transaction having been added to mempool.
virtual void BlockConnected(const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex, const std::vector< CTransactionRef > &txnConflicted)
Notifies listeners of a block being connected.
void UnregisterValidationInterface(CValidationInterface *pwalletIn)
Unregister a wallet from core.