Dash Core  0.12.2.1
P2P Digital Currency
dsnotificationinterface.h
Go to the documentation of this file.
1 // Copyright (c) 2015 The Bitcoin 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 BITCOIN_DSNOTIFICATIONINTERFACE_H
6 #define BITCOIN_DSNOTIFICATIONINTERFACE_H
7 
8 #include "validationinterface.h"
9 
11 {
12 public:
13  CDSNotificationInterface(CConnman& connmanIn): connman(connmanIn) {}
14  virtual ~CDSNotificationInterface() = default;
15 
16  // a small helper to initialize current block height in sub-modules on startup
18 
19 protected:
20  // CValidationInterface
21  void AcceptedBlockHeader(const CBlockIndex *pindexNew) override;
22  void NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload) override;
23  void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
24  void SyncTransaction(const CTransaction &tx, const CBlock *pblock) override;
25 
26 private:
28 };
29 
30 #endif // BITCOIN_DSNOTIFICATIONINTERFACE_H
void SyncTransaction(const CTransaction &tx, const CBlock *pblock) override
virtual ~CDSNotificationInterface()=default
Definition: net.h:108
CDSNotificationInterface(CConnman &connmanIn)
void NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload) override
void AcceptedBlockHeader(const CBlockIndex *pindexNew) override
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Definition: block.h:73