LCOV - code coverage report
Current view: top level - src/evo - evonotificationinterface.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 15 15 100.0 %
Date: 2026-08-09 10:51:41 Functions: 4 4 100.0 %

          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         293 : void EvoNotificationInterface::InitializeCurrentBlockTip()
      15             : {
      16         293 :     LOCK(cs_main);
      17         586 :     deterministicMNManager->SetTipIndex(chainActive.Tip());
      18         293 : }
      19             : 
      20       24511 : void EvoNotificationInterface::AcceptedBlockHeader(const CBlockIndex* pindexNew)
      21             : {
      22       24511 :     llmq::chainLocksHandler->AcceptedBlockHeader(pindexNew);
      23       24511 : }
      24             : 
      25       24761 : void EvoNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
      26             : {
      27             :     // background thread updates
      28       24761 :     llmq::chainLocksHandler->UpdatedBlockTip(pindexNew);
      29       24761 :     llmq::quorumDKGSessionManager->UpdatedBlockTip(pindexNew, fInitialDownload);
      30       24761 :     llmq::quorumManager->UpdatedBlockTip(pindexNew, fInitialDownload);
      31       24761 : }
      32             : 
      33         407 : void EvoNotificationInterface::NotifyMasternodeListChanged(bool undo, const CDeterministicMNList& oldMNList, const CDeterministicMNListDiff& diff)
      34             : {
      35         407 :     CMNAuth::NotifyMasternodeListChanged(undo, oldMNList, diff);
      36         407 : }

Generated by: LCOV version 1.14