From 3764dea5d0b12f149831ea76ad470618e2027222 Mon Sep 17 00:00:00 2001 From: miketout Date: Thu, 4 Oct 2018 12:42:50 -0700 Subject: [PATCH] Change block before header from error to warning --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 632504ad3..a9cc4dd73 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4671,7 +4671,7 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat const CChainParams& chainparams = Params(); AssertLockHeld(cs_main); - // Check for duplicate + // Check for duplicate uint256 hash = block.GetHash(); BlockMap::iterator miSelf = mapBlockIndex.find(hash); CBlockIndex *pindex = NULL; @@ -4766,8 +4766,9 @@ bool AcceptBlock(int32_t *futureblockp,CBlock& block, CValidationState& state, C } if ( pindex == 0 ) { - LogPrintf("AcceptBlock null pindex error\n"); - return false; + LogPrintf("WARNING: AcceptBlock null pindex, skipping until received again\n"); + *futureblockp = true; + return true; } //fprintf(stderr,"acceptblockheader passed\n"); // Try to process all requested blocks that we don't have, but only