This commit is contained in:
jl777
2018-04-08 19:40:37 +03:00
parent 986ec226cd
commit 6c93ad75b2

View File

@@ -578,7 +578,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
if ( (pindex= mapBlockIndex[srchash]) == 0 || pindex->nHeight != *notarizedheightp )
{
fprintf(stderr,"FORK detected. notarized.%d %s not in this chain! REWIND to %d\n",*notarizedheightp,srchash.ToString().c_str(),sp->NOTARIZED_HEIGHT);
if ( sp->NOTARIZED_HEIGHT > 0 && sp->NOTARIZED_HEIGHT < *notarized_heightp )
if ( sp->NOTARIZED_HEIGHT > 0 && sp->NOTARIZED_HEIGHT < *notarizedheightp )
KOMODO_REWIND = sp->NOTARIZED_HEIGHT - 1;
else if ( *notarized_heightp > 101 )
KOMODO_REWIND = *notarized_heightp - 101;