diff --git a/src/komodo.h b/src/komodo.h index 3529035b9..ab27006ae 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -58,7 +58,7 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp) int32_t komodo_blockcheck(CBlock *block,uint32_t *nBitsp) { - CBlockIndex *bindex = new CBlockIndex((CBlockHeader*)&block); + CBlockIndex *bindex = new CBlockIndex(&(block->GetBlockHeader())); if ( bindex->nHeight <= NOTARIZED_HEIGHT ) return(-1); // 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS