PIVX Core  5.6.99
P2P Digital Currency
evonotificationinterface.h
Go to the documentation of this file.
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 
11 {
12 public:
13  virtual ~EvoNotificationInterface() = default;
14 
15  // a small helper to initialize current block height in sub-modules on startup
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
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:139
Implement this to subscribe to events generated in validation.
virtual ~EvoNotificationInterface()=default
void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff) override
Notifies listeners of updated deterministic masternode list.
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Notifies listeners when the block chain tip advances.
void AcceptedBlockHeader(const CBlockIndex *pindexNew) override