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());
|
||||
for (i=0; i<n; i++)
|
||||
if ( localbits[i] == 0 )
|
||||
break;
|
||||
if ( i == n )
|
||||
{
|
||||
localbits[i] = prevbits[i];
|
||||
if ( maxflag == 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);
|
||||
} 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);
|
||||
|
||||
Reference in New Issue
Block a user