test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user