From 8999ab66f1028847e3871cff7a0c1fdb6d37f1b4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Apr 2018 23:18:52 +0300 Subject: [PATCH] Test --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index ca86aa5e9..16a04e654 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3759,7 +3759,10 @@ bool CheckBlockHeader(int32_t height,CBlockIndex *pindex, const CBlockHeader& bl } } if (blockhdr.GetBlockTime() > GetAdjustedTime() + 60) + { + fprintf(stderr,"future block %u vs time.%u + 60\n",(uint32_t)blockhdr.GetBlockTime(),(uint32_t)GetAdjustedTime()); return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),REJECT_INVALID, "time-too-new"); + } else if ( ASSETCHAINS_STAKED != 0 && pindex != 0 && pindex->pprev != 0 && pindex->nTime < pindex->pprev->nTime ) { fprintf(stderr,"ht.%d %u vs ht.%d %u, is not monotonic\n",pindex->nHeight,pindex->nTime,pindex->pprev->nHeight,pindex->pprev->nTime);