test
This commit is contained in:
@@ -3169,7 +3169,11 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
|
|||||||
CBlockIndex *&pindex = *ppindex;
|
CBlockIndex *&pindex = *ppindex;
|
||||||
if (!AcceptBlockHeader(block, state, &pindex))
|
if (!AcceptBlockHeader(block, state, &pindex))
|
||||||
return false;
|
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
|
// 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
|
// process an unrequested block if it's new and has enough work to
|
||||||
// advance our tip, and isn't too many blocks ahead.
|
// advance our tip, and isn't too many blocks ahead.
|
||||||
|
|||||||
Reference in New Issue
Block a user