From f03d63720c43f2c63011d2c25f42a63cf5fc02d9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 14 Sep 2016 04:20:11 -0300 Subject: [PATCH] reduce allowed future timestamp 2hrs -> 10 min --- src/main.cpp | 2 +- src/miner.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 01bef8d78..e3b2b5903 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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"); diff --git a/src/miner.cpp b/src/miner.cpp index 67419da4a..6d873dccc 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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 //