Test
This commit is contained in:
@@ -1714,12 +1714,12 @@ int32_t komodo_opretvalidate(int32_t nHeight,CScript scriptPubKey)
|
|||||||
fprintf(stderr,"ht.%d: lag.%d %.4f USD, %.4f GBP, %.4f EUR, GBPUSD %.6f, EURUSD %.6f, EURGBP %.6f [%d]\n",nHeight,lag,btcusd,btcgbp,btceur,btcusd/btcgbp,btcusd/btceur,btcgbp/btceur,lag2);
|
fprintf(stderr,"ht.%d: lag.%d %.4f USD, %.4f GBP, %.4f EUR, GBPUSD %.6f, EURUSD %.6f, EURGBP %.6f [%d]\n",nHeight,lag,btcusd,btcgbp,btceur,btcusd/btcgbp,btcusd/btceur,btcgbp/btceur,lag2);
|
||||||
if ( komodo_heightpricebits(prevbits,nHeight-1) == 0 )
|
if ( komodo_heightpricebits(prevbits,nHeight-1) == 0 )
|
||||||
{
|
{
|
||||||
if ( nHeight < 500 )
|
/*if ( nHeight < 500 )
|
||||||
{
|
{
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
if ( pricebits[i] == 0 )
|
if ( pricebits[i] == 0 )
|
||||||
pricebits[i] = prevbits[i];
|
pricebits[i] = prevbits[i];
|
||||||
}
|
}*/
|
||||||
if ( komodo_pricecmp(nHeight,n,&maxflag,pricebits,prevbits,PRICES_MAXCHANGE) < 0 )
|
if ( komodo_pricecmp(nHeight,n,&maxflag,pricebits,prevbits,PRICES_MAXCHANGE) < 0 )
|
||||||
{
|
{
|
||||||
for (i=1; i<n; i++)
|
for (i=1; i<n; i++)
|
||||||
@@ -1730,7 +1730,7 @@ int32_t komodo_opretvalidate(int32_t nHeight,CScript scriptPubKey)
|
|||||||
fprintf(stderr," newprices.%d\n",nHeight);
|
fprintf(stderr," newprices.%d\n",nHeight);
|
||||||
|
|
||||||
fprintf(stderr,"vs prev maxflag.%d cmp error\n",maxflag);
|
fprintf(stderr,"vs prev maxflag.%d cmp error\n",maxflag);
|
||||||
if ( nHeight > 500 )
|
//if ( nHeight > 500 )
|
||||||
return(-1);
|
return(-1);
|
||||||
} // else this is the good case we hope to happen
|
} // else this is the good case we hope to happen
|
||||||
} //else return(-1);
|
} //else return(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user