2016-12-20 14:26:45 +01:00
|
|
|
// Copyright (c) 2014-2017 The Dash Core developers
|
2016-03-02 22:20:04 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#include "dsnotificationinterface.h"
|
2017-01-29 09:22:14 +01:00
|
|
|
#include "instantx.h"
|
2016-04-15 04:54:11 +02:00
|
|
|
#include "governance.h"
|
2016-10-20 23:11:30 +02:00
|
|
|
#include "masternodeman.h"
|
2016-03-02 22:20:04 +01:00
|
|
|
#include "masternode-payments.h"
|
|
|
|
#include "masternode-sync.h"
|
2017-07-10 16:42:09 +02:00
|
|
|
#include "privatesend-client.h"
|
2016-03-02 22:20:04 +01:00
|
|
|
|
|
|
|
CDSNotificationInterface::CDSNotificationInterface()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CDSNotificationInterface::~CDSNotificationInterface()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-08-04 19:43:48 +02:00
|
|
|
void CDSNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
|
2016-03-02 22:20:04 +01:00
|
|
|
{
|
2017-08-04 19:43:48 +02:00
|
|
|
mnodeman.UpdatedBlockTip(pindexNew);
|
|
|
|
privateSendClient.UpdatedBlockTip(pindexNew);
|
|
|
|
instantsend.UpdatedBlockTip(pindexNew);
|
|
|
|
mnpayments.UpdatedBlockTip(pindexNew);
|
|
|
|
governance.UpdatedBlockTip(pindexNew);
|
2017-08-09 18:07:03 +02:00
|
|
|
masternodeSync.UpdatedBlockTip(pindexNew, fInitialDownload);
|
2016-03-02 22:20:04 +01:00
|
|
|
}
|
2017-01-29 09:22:14 +01:00
|
|
|
|
|
|
|
void CDSNotificationInterface::SyncTransaction(const CTransaction &tx, const CBlock *pblock)
|
|
|
|
{
|
|
|
|
instantsend.SyncTransaction(tx, pblock);
|
2017-07-10 16:42:09 +02:00
|
|
|
CPrivateSend::SyncTransaction(tx, pblock);
|
2017-01-29 09:22:14 +01:00
|
|
|
}
|