This commit is contained in:
jl777
2016-10-21 07:24:28 -03:00
parent 0f476b5b90
commit 5f197aeeba
2 changed files with 5 additions and 5 deletions

View File

@@ -609,7 +609,7 @@ void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height)
memset(pubkey33,0,33);
if ( pindex != 0 )
{
if ( 0 && ReadBlockFromDisk(block,(const CBlockIndex *)pindex) != 0 )
if ( ReadBlockFromDisk(block,(const CBlockIndex *)pindex) != 0 )
{
komodo_block2pubkey33(pubkey33,block);
}

View File

@@ -3138,8 +3138,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
return true;
}
//if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state))
// return false;
if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state))
return false;
// Get prev block index
CBlockIndex* pindexPrev = NULL;
@@ -3155,8 +3155,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
return false;
if (pindex == NULL)
pindex = AddToBlockIndex(block);
if (!CheckBlockHeader(pindex!=0?pindex->nHeight:0,pindex, block, state))
return false;
//if (!CheckBlockHeader(pindex!=0?pindex->nHeight:0,pindex, block, state))
// return false;
if (ppindex)
*ppindex = pindex;
return true;