From 81eb5548c65eec1f55ce2e842bee7443c01dc632 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 31 Jul 2019 19:45:26 -1100 Subject: [PATCH] <3000 --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 301c0c071..14c8e05ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5288,11 +5288,11 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta } // Check timestamp against prev - if ( ASSETCHAINS_ADAPTIVEPOW == 0 || nHeight < 2000 ) + if ( ASSETCHAINS_ADAPTIVEPOW == 0 || nHeight < 3000 ) { if (block.GetBlockTime() <= pindexPrev->GetMedianTimePast() ) { - fprintf(stderr,"too early %u vs %u\n",(uint32_t)block.GetBlockTime(),(uint32_t)pindexPrev->GetMedianTimePast()); + fprintf(stderr,"ht.%d too early %u vs %u\n",(int32_t)nHeight,(uint32_t)block.GetBlockTime(),(uint32_t)pindexPrev->GetMedianTimePast()); return state.Invalid(error("%s: block's timestamp is too early", __func__), REJECT_INVALID, "time-too-old"); } @@ -5301,7 +5301,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta { if ( block.GetBlockTime() <= pindexPrev->GetMedianTimePast() + 2*ASSETCHAINS_ADAPTIVEPOW*ASSETCHAINS_BLOCKTIME ) { - fprintf(stderr,"too early2 %u vs %u\n",(uint32_t)block.GetBlockTime(),(uint32_t)pindexPrev->GetMedianTimePast()); + fprintf(stderr,"ht.%d too early2 %u vs %u\n",(int32_t)nHeight,(uint32_t)block.GetBlockTime(),(uint32_t)pindexPrev->GetMedianTimePast()); return state.Invalid(error("%s: block's timestamp is too early2", __func__), REJECT_INVALID, "time-too-old"); }