test
This commit is contained in:
@@ -533,7 +533,7 @@ int32_t komodo_block2height(CBlock *block)
|
||||
printf("%02x",ptr[i]);
|
||||
for (i=0; i<4; i++)
|
||||
height = (height << 8) + ptr[i+2];
|
||||
printf(" <- coinbase ht.%d\n",height);
|
||||
printf(" <- coinbase.%d ht.%d\n",block->vtx[0].vin[0].scriptSig.size(),height);
|
||||
}
|
||||
return(height);
|
||||
}
|
||||
|
||||
@@ -3130,8 +3130,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!CheckBlockHeader((*ppindex)->nHeight,*ppindex, block, state))
|
||||
return false;
|
||||
//if (!CheckBlockHeader((*ppindex)->nHeight,*ppindex, block, state))
|
||||
// return false;
|
||||
|
||||
// Get prev block index
|
||||
CBlockIndex* pindexPrev = NULL;
|
||||
@@ -3149,6 +3149,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
||||
|
||||
if (pindex == NULL)
|
||||
pindex = AddToBlockIndex(block);
|
||||
if (!CheckBlockHeader(pindex->nHeight,pindex, block, state))
|
||||
return false;
|
||||
|
||||
if (ppindex)
|
||||
*ppindex = pindex;
|
||||
|
||||
Reference in New Issue
Block a user