test
This commit is contained in:
@@ -28,6 +28,8 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
|
|||||||
// 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS
|
// 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS
|
||||||
// -1 -> invalid, ie, prior to notarized block
|
// -1 -> invalid, ie, prior to notarized block
|
||||||
CBlock block; int32_t height; char *coinbasestr;
|
CBlock block; int32_t height; char *coinbasestr;
|
||||||
|
if ( pindex == 0 )
|
||||||
|
return(0);
|
||||||
block.SetNull();
|
block.SetNull();
|
||||||
CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION);
|
CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION);
|
||||||
if ( filein.IsNull() )
|
if ( filein.IsNull() )
|
||||||
|
|||||||
Reference in New Issue
Block a user