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);
|
memset(pubkey33,0,33);
|
||||||
if ( pindex != 0 )
|
if ( pindex != 0 )
|
||||||
{
|
{
|
||||||
if ( 0 && ReadBlockFromDisk(block,(const CBlockIndex *)pindex) != 0 )
|
if ( ReadBlockFromDisk(block,(const CBlockIndex *)pindex) != 0 )
|
||||||
{
|
{
|
||||||
komodo_block2pubkey33(pubkey33,block);
|
komodo_block2pubkey33(pubkey33,block);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3138,8 +3138,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state))
|
if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state))
|
||||||
// return false;
|
return false;
|
||||||
|
|
||||||
// Get prev block index
|
// Get prev block index
|
||||||
CBlockIndex* pindexPrev = NULL;
|
CBlockIndex* pindexPrev = NULL;
|
||||||
@@ -3155,8 +3155,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
|||||||
return false;
|
return false;
|
||||||
if (pindex == NULL)
|
if (pindex == NULL)
|
||||||
pindex = AddToBlockIndex(block);
|
pindex = AddToBlockIndex(block);
|
||||||
if (!CheckBlockHeader(pindex!=0?pindex->nHeight:0,pindex, block, state))
|
//if (!CheckBlockHeader(pindex!=0?pindex->nHeight:0,pindex, block, state))
|
||||||
return false;
|
// return false;
|
||||||
if (ppindex)
|
if (ppindex)
|
||||||
*ppindex = pindex;
|
*ppindex = pindex;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user