From 937401b6d07fa0b37bce718105517b021724efe2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 18 Oct 2016 12:56:22 -0300 Subject: [PATCH] test --- src/komodo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/komodo.h b/src/komodo.h index 2c8680b33..52b57cda9 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -28,6 +28,8 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp) // 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS // -1 -> invalid, ie, prior to notarized block CBlock block; int32_t height; char *coinbasestr; + if ( pindex == 0 ) + return(0); block.SetNull(); CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION); if ( filein.IsNull() )