reduce allowed future timestamp 2hrs -> 10 min

This commit is contained in:
jl777
2016-09-14 04:20:11 -03:00
parent f333b7b9e9
commit f03d63720c
2 changed files with 2 additions and 2 deletions

View File

@@ -2949,7 +2949,7 @@ bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool f
REJECT_INVALID, "high-hash");
// Check timestamp
if (block.GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)
if (block.GetBlockTime() > GetAdjustedTime() + 600)
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),
REJECT_INVALID, "time-too-new");

View File

@@ -485,7 +485,7 @@ void static BitcoinMiner(CWallet *pwallet)
} while (true);
fprintf(stderr,"Found peers\n");
}
fprintf(stderr,"create new block\n");
//fprintf(stderr,"create new block\n");
//
// Create new block
//