6 #ifndef FABCOIN_VALIDATIONINTERFACE_H 7 #define FABCOIN_VALIDATIONINTERFACE_H 8 #include <boost/signals2/signal.hpp> 9 #include <boost/shared_ptr.hpp> 44 virtual void BlockConnected(
const std::shared_ptr<const CBlock> &block,
const CBlockIndex *pindex,
const std::vector<CTransactionRef> &txnConflicted) {}
83 static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1;
84 boost::signals2::signal<void (const CTransaction &, const CBlockIndex *pindex, int posInBlock)>
SyncTransaction;
87 void RegisterBackgroundSignalScheduler(
CScheduler& scheduler);
89 void UnregisterBackgroundSignalScheduler();
91 void FlushBackgroundCallbacks();
95 void BlockConnected(
const std::shared_ptr<const CBlock> &,
const CBlockIndex *pindex,
const std::vector<CTransactionRef> &);
99 void Broadcast(int64_t nBestBlockTime,
CConnman* connman);
102 void ScriptForMining(std::shared_ptr<CReserveScript> &coinbaseScript);
103 void BlockFound(
const uint256 &);
108 #endif // FABCOIN_VALIDATIONINTERFACE_H virtual void ResetRequestCount(const uint256 &)
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...
boost::signals2::signal< void(const uint256 &)> UpdatedTransaction
virtual void SyncTransaction(const CTransaction &tx, const CBlockIndex *pindex, int posInBlock)
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.
boost::signals2::signal< void(const CTransaction &, const CBlockIndex *pindex, int posInBlock)> SyncTransaction
std::shared_ptr< const CTransaction > CTransactionRef
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.
virtual void GetScriptForMining(std::shared_ptr< CReserveScript > &coinbaseScript)
CMainSignals & GetMainSignals()
Capture information about block/transaction validation.
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.
The basic transaction that is broadcasted on the network and contained in blocks. ...
void UnregisterValidationInterface(CValidationInterface *pwalletIn)
Unregister a wallet from core.
virtual void UpdatedTransaction(const uint256 &hash)