fix future time bug (#1200)

This commit is contained in:
UdjinM6 2016-12-11 15:08:10 +04:00 committed by GitHub
parent e9125835b7
commit 8f20c3ba46

View File

@ -759,7 +759,7 @@ bool CGovernanceManager::MasternodeRateCheck(const CGovernanceObject& govobj, bo
return false;
}
if(nTimestamp > nNow - 2 * nSuperblockCycleSeconds) {
if(nTimestamp > nNow + 2 * nSuperblockCycleSeconds) {
LogPrintf("CGovernanceManager::MasternodeRateCheck -- object %s rejected due to too new (future) timestamp, masternode vin = %s, timestamp = %d, current time = %d\n",
strHash, vin.prevout.ToStringShort(), nTimestamp, nNow);
return false;