Handle partial 0
This commit is contained in:
@@ -1713,9 +1713,7 @@ int32_t komodo_opretvalidate(int32_t nHeight,CScript scriptPubKey)
|
|||||||
memcpy(localbits,Mineropret.data(),Mineropret.size());
|
memcpy(localbits,Mineropret.data(),Mineropret.size());
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
if ( localbits[i] == 0 )
|
if ( localbits[i] == 0 )
|
||||||
break;
|
localbits[i] = prevbits[i];
|
||||||
if ( i == n )
|
|
||||||
{
|
|
||||||
if ( maxflag == 0 )
|
if ( maxflag == 0 )
|
||||||
{
|
{
|
||||||
if ( komodo_pricecmp(n,&maxflag,localbits,prevbits,PRICES_MAXCHANGE) < 0 )
|
if ( komodo_pricecmp(n,&maxflag,localbits,prevbits,PRICES_MAXCHANGE) < 0 )
|
||||||
@@ -1741,7 +1739,6 @@ int32_t komodo_opretvalidate(int32_t nHeight,CScript scriptPubKey)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return(0);
|
return(0);
|
||||||
} else fprintf(stderr,"wrong size %d vs %d, scriptPubKey size %d [%02x]\n",(int32_t)vopret.size(),(int32_t)Mineropret.size(),(int32_t)scriptPubKey.size(),scriptPubKey[0]);
|
} else fprintf(stderr,"wrong size %d vs %d, scriptPubKey size %d [%02x]\n",(int32_t)vopret.size(),(int32_t)Mineropret.size(),(int32_t)scriptPubKey.size(),scriptPubKey[0]);
|
||||||
return(-1);
|
return(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user