Line data Source code
1 : // Copyright (c) 2021 The PIVX Core developers 2 : // Distributed under the MIT software license, see the accompanying 3 : // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 : 5 : #ifndef PIVX_EVO_EVONOTIFICATIONINTERFACE_H 6 : #define PIVX_EVO_EVONOTIFICATIONINTERFACE_H 7 : 8 : #include "validationinterface.h" 9 : 10 475 : class EvoNotificationInterface : public CValidationInterface 11 : { 12 : public: 13 475 : virtual ~EvoNotificationInterface() = default; 14 : 15 : // a small helper to initialize current block height in sub-modules on startup 16 : void InitializeCurrentBlockTip(); 17 : 18 : protected: 19 : // CValidationInterface 20 : void AcceptedBlockHeader(const CBlockIndex* pindexNew) override; 21 : void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override; 22 : void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList& oldMNList, const CDeterministicMNListDiff& diff) override; 23 : }; 24 : 25 : #endif // PIVX_EVO_EVONOTIFICATIONINTERFACE_H