Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | protected: | ||||
virtual void BlockChecked(const CBlock &, const CValidationState &) {} | virtual void BlockChecked(const CBlock &, const CValidationState &) {} | ||||
/** | /** | ||||
* 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 | * has been received and connected to the headers tree, though not validated | ||||
* yet. | * yet. | ||||
*/ | */ | ||||
virtual void NewPoWValidBlock(const CBlockIndex *pindex, | virtual void NewPoWValidBlock(const CBlockIndex *pindex, | ||||
const std::shared_ptr<const CBlock> &block){}; | const std::shared_ptr<const CBlock> &block){}; | ||||
friend void ::RegisterSharedValidationInterface( | friend class CMainSignals; | ||||
std::shared_ptr<CValidationInterface>); | |||||
friend void ::UnregisterValidationInterface(CValidationInterface *); | |||||
friend void ::UnregisterAllValidationInterfaces(); | |||||
}; | }; | ||||
struct MainSignalsInstance; | struct MainSignalsInstance; | ||||
class CMainSignals { | class CMainSignals { | ||||
private: | private: | ||||
std::unique_ptr<MainSignalsInstance> m_internals; | std::unique_ptr<MainSignalsInstance> m_internals; | ||||
friend void ::RegisterSharedValidationInterface( | friend void ::RegisterSharedValidationInterface( | ||||
Show All 40 Lines |