Skip to content

Commit 51cdd76

Browse files
author
limxdev
committed
disable Watchdog check
1 parent 1aef268 commit 51cdd76

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 0)
44
define(_CLIENT_VERSION_MINOR, 90)
55
define(_CLIENT_VERSION_REVISION, 8)
6-
define(_CLIENT_VERSION_BUILD, 7)
6+
define(_CLIENT_VERSION_BUILD, 8)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2020)
99
define(_COPYRIGHT_HOLDERS,[The %s developers])

src/masternode.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,21 @@ void CMasternode::Check(bool fForce)
244244
}
245245

246246
bool fWatchdogActive = masternodeSync.IsSynced() && mnodeman.IsWatchdogActive();
247-
bool fWatchdogExpired = (fWatchdogActive && ((GetAdjustedTime() - nTimeLastWatchdogVote) > MASTERNODE_WATCHDOG_MAX_SECONDS));
247+
//bool fWatchdogExpired = (fWatchdogActive && ((GetAdjustedTime() - nTimeLastWatchdogVote) > MASTERNODE_WATCHDOG_MAX_SECONDS));
248+
bool fWatchdogExpired = false;
248249

249-
LogPrint(BCLog::MASTERNODE, "CMasternode::Check -- outpoint=%s, nTimeLastWatchdogVote=%d, GetAdjustedTime()=%d, fWatchdogExpired=%d\n",
250+
//LogPrint(BCLog::MASTERNODE, "CMasternode::Check -- outpoint=%s, nTimeLastWatchdogVote=%d, GetAdjustedTime()=%d, fWatchdogExpired=%d\n",
250251
vin.prevout.ToStringShort(), nTimeLastWatchdogVote, GetAdjustedTime(), fWatchdogExpired);
251252

253+
252254
if(fWatchdogExpired) {
253255
nActiveState = MASTERNODE_WATCHDOG_EXPIRED;
254256
if(nActiveStatePrev != nActiveState) {
255257
LogPrint(BCLog::MASTERNODE, "CMasternode::Check -- Masternode %s is in %s state now\n", vin.prevout.ToStringShort(), GetStateString());
256258
}
257259
return;
258260
}
261+
259262

260263
if(!IsPingedWithin(MASTERNODE_EXPIRATION_SECONDS)) {
261264
nActiveState = MASTERNODE_EXPIRED;

0 commit comments

Comments
 (0)