Line data Source code
1 : // Copyright (c) 2014-2019 The Dash 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 : #include "evo/evonotificationinterface.h" 6 : 7 : #include "evo/deterministicmns.h" 8 : #include "evo/mnauth.h" 9 : #include "llmq/quorums.h" 10 : #include "llmq/quorums_chainlocks.h" 11 : #include "llmq/quorums_dkgsessionmgr.h" 12 : #include "validation.h" 13 : 14 355 : void EvoNotificationInterface::InitializeCurrentBlockTip() 15 : { 16 355 : LOCK(cs_main); 17 710 : deterministicMNManager->SetTipIndex(chainActive.Tip()); 18 355 : } 19 : 20 41186 : void EvoNotificationInterface::AcceptedBlockHeader(const CBlockIndex* pindexNew) 21 : { 22 41186 : llmq::chainLocksHandler->AcceptedBlockHeader(pindexNew); 23 41186 : } 24 : 25 41471 : void EvoNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) 26 : { 27 : // background thread updates 28 41471 : llmq::chainLocksHandler->UpdatedBlockTip(pindexNew); 29 41471 : llmq::quorumDKGSessionManager->UpdatedBlockTip(pindexNew, fInitialDownload); 30 41471 : llmq::quorumManager->UpdatedBlockTip(pindexNew, fInitialDownload); 31 41471 : } 32 : 33 7251 : void EvoNotificationInterface::NotifyMasternodeListChanged(bool undo, const CDeterministicMNList& oldMNList, const CDeterministicMNListDiff& diff) 34 : { 35 7251 : CMNAuth::NotifyMasternodeListChanged(undo, oldMNList, diff); 36 7251 : }