From 1e9dc6a83bf7be7f1a3e98d3be7df97611e37cb6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Oct 2016 20:51:42 -0300 Subject: [PATCH] test --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6e6f8ecb9..b3940707c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3169,7 +3169,11 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex, CBlockIndex *&pindex = *ppindex; if (!AcceptBlockHeader(block, state, &pindex)) return false; - + if ( pindex == 0 ) + { + fprintf(stderr,"AcceptBlock error null pindex\n"); + return false; + } // Try to process all requested blocks that we don't have, but only // process an unrequested block if it's new and has enough work to // advance our tip, and isn't too many blocks ahead.