@@ -156,7 +156,7 @@ void CMasternodeMan::Check()
156156 LOCK2 (cs_main, cs);
157157 // FXTC END
158158
159- LogPrint (BCLog::MASTERNODE, " CMasternodeMan::Check -- nLastWatchdogVoteTime=%d, IsWatchdogActive()=%d\n " , nLastWatchdogVoteTime, IsWatchdogActive ());
159+ // LogPrint(BCLog::MASTERNODE, "CMasternodeMan::Check -- nLastWatchdogVoteTime=%d, IsWatchdogActive()=%d\n", nLastWatchdogVoteTime, IsWatchdogActive());
160160
161161 for (auto & mnpair : mapMasternodes) {
162162 mnpair.second .Check ();
@@ -802,8 +802,8 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, const std::string& strCommand,
802802 // if masternode uses sentinel ping instead of watchdog
803803 // we shoud update nTimeLastWatchdogVote here if sentinel
804804 // ping flag is actual
805- if (pmn && mnp.fSentinelIsCurrent )
806- UpdateWatchdogVoteTime (mnp.vin .prevout , mnp.sigTime );
805+ // if(pmn && mnp.fSentinelIsCurrent)
806+ // UpdateWatchdogVoteTime(mnp.vin.prevout, mnp.sigTime);
807807
808808 // too late, new MNANNOUNCE is required
809809 if (pmn && pmn->IsNewStartRequired ()) return ;
@@ -1495,12 +1495,6 @@ void CMasternodeMan::UpdateWatchdogVoteTime(const COutPoint& outpoint, uint64_t
14951495 nLastWatchdogVoteTime = GetTime ();
14961496}
14971497
1498- bool CMasternodeMan::IsWatchdogActive ()
1499- {
1500- LOCK (cs);
1501- // Check if any masternodes have voted recently, otherwise return false
1502- return (GetTime () - nLastWatchdogVoteTime) <= MASTERNODE_WATCHDOG_MAX_SECONDS;
1503- }
15041498
15051499bool CMasternodeMan::AddGovernanceVote (const COutPoint& outpoint, uint256 nGovernanceObjectHash)
15061500{
@@ -1553,9 +1547,9 @@ void CMasternodeMan::SetMasternodeLastPing(const COutPoint& outpoint, const CMas
15531547 // if masternode uses sentinel ping instead of watchdog
15541548 // we shoud update nTimeLastWatchdogVote here if sentinel
15551549 // ping flag is actual
1556- if (mnp.fSentinelIsCurrent ) {
1557- UpdateWatchdogVoteTime (mnp.vin .prevout , mnp.sigTime );
1558- }
1550+ // if(mnp.fSentinelIsCurrent) {
1551+ // UpdateWatchdogVoteTime(mnp.vin.prevout, mnp.sigTime);
1552+ // }
15591553 mapSeenMasternodePing.insert (std::make_pair (mnp.GetHash (), mnp));
15601554
15611555 CMasternodeBroadcast mnb (*pmn);
0 commit comments