From 07a76059852f7095bcc04ce36ecf94053ed15ac0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 17 Oct 2016 14:53:48 -0300 Subject: [PATCH] test --- src/komodo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo.h b/src/komodo.h index 0d950a7d7..d182344eb 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -58,7 +58,8 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp) int32_t komodo_blockcheck(CBlock *block,uint32_t *nBitsp) { - if ( block->GetHeight() <= NOTARIZED_HEIGHT ) + CBlockIndex *bindex = new CBlockIndex((CBlockHeader*)&block); + if ( bindex->GetHeight() <= NOTARIZED_HEIGHT ) return(-1); // 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS // -1 -> invalid, ie, prior to notarized block