Fix null block access

This commit is contained in:
jl777
2019-08-05 05:46:15 -11:00
parent 49383efcd1
commit cf94e03ac6

View File

@@ -282,7 +282,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
}
fprintf(stderr," cmp.%d mult.%d for ht.%d\n",mult>1,(int32_t)mult,(int32_t)pindexLast->GetHeight()+1);
}
else
else if ( pblock != 0 )
{
// bnTarget = RT_CST_RST (bnTarget, ts, cw, numerator, denominator, W, T, past);
bnTarget = RT_CST_RST(pblock->nTime,bnTarget,ts,ct,1,2,3,50);