|
|
@ -7,7 +7,6 @@ |
|
|
|
#define BITCOIN_VALIDATIONINTERFACE_H |
|
|
|
#define BITCOIN_VALIDATIONINTERFACE_H |
|
|
|
|
|
|
|
|
|
|
|
#include <boost/signals2/signal.hpp> |
|
|
|
#include <boost/signals2/signal.hpp> |
|
|
|
#include <boost/shared_ptr.hpp> |
|
|
|
|
|
|
|
#include <memory> |
|
|
|
#include <memory> |
|
|
|
|
|
|
|
|
|
|
|
#include "primitives/transaction.h" // CTransaction(Ref) |
|
|
|
#include "primitives/transaction.h" // CTransaction(Ref) |
|
|
@ -42,7 +41,7 @@ protected: |
|
|
|
virtual void Inventory(const uint256 &hash) {} |
|
|
|
virtual void Inventory(const uint256 &hash) {} |
|
|
|
virtual void ResendWalletTransactions(int64_t nBestBlockTime, CConnman* connman) {} |
|
|
|
virtual void ResendWalletTransactions(int64_t nBestBlockTime, CConnman* connman) {} |
|
|
|
virtual void BlockChecked(const CBlock&, const CValidationState&) {} |
|
|
|
virtual void BlockChecked(const CBlock&, const CValidationState&) {} |
|
|
|
virtual void GetScriptForMining(boost::shared_ptr<CReserveScript>&) {}; |
|
|
|
virtual void GetScriptForMining(std::shared_ptr<CReserveScript>&) {}; |
|
|
|
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& block) {}; |
|
|
|
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& block) {}; |
|
|
|
friend void ::RegisterValidationInterface(CValidationInterface*); |
|
|
|
friend void ::RegisterValidationInterface(CValidationInterface*); |
|
|
|
friend void ::UnregisterValidationInterface(CValidationInterface*); |
|
|
|
friend void ::UnregisterValidationInterface(CValidationInterface*); |
|
|
@ -77,7 +76,7 @@ struct CMainSignals { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked; |
|
|
|
boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked; |
|
|
|
/** Notifies listeners that a key for mining is required (coinbase) */ |
|
|
|
/** Notifies listeners that a key for mining is required (coinbase) */ |
|
|
|
boost::signals2::signal<void (boost::shared_ptr<CReserveScript>&)> ScriptForMining; |
|
|
|
boost::signals2::signal<void (std::shared_ptr<CReserveScript>&)> ScriptForMining; |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Notifies listeners that a block which builds directly on our current tip |
|
|
|
* Notifies listeners that a block which builds directly on our current tip |
|
|
|
* has been received and connected to the headers tree, though not validated yet */ |
|
|
|
* has been received and connected to the headers tree, though not validated yet */ |
|
|
|