This commit is contained in:
jl777
2016-10-18 12:48:18 -03:00
parent b501ded2ba
commit f5dfad85bd

View File

@@ -29,7 +29,7 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
// -1 -> invalid, ie, prior to notarized block
CBlock block; int32_t height; char *coinbasestr;
block.SetNull();
CAutoFile filein(OpenBlockFile(pos, true), SER_DISK, CLIENT_VERSION);
CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION);
if ( filein.IsNull() )
return(-1);
try { filein >> block; }