From f5dfad85bddf2d6d7bdb7f33d5ab8ee9088a378f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 18 Oct 2016 12:48:18 -0300 Subject: [PATCH] test --- src/komodo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo.h b/src/komodo.h index d9d482552..4f32b3e97 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -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; }