Check for lag2
This commit is contained in:
@@ -1712,7 +1712,12 @@ int32_t komodo_opretvalidate(int32_t nHeight,CScript scriptPubKey)
|
|||||||
lag2 = (int32_t)(komodo_heightstamp(nHeight-1) - pricebits[0]);
|
lag2 = (int32_t)(komodo_heightstamp(nHeight-1) - pricebits[0]);
|
||||||
if ( lag < -60 ) // avoid data from future
|
if ( lag < -60 ) // avoid data from future
|
||||||
{
|
{
|
||||||
fprintf(stderr,"now.%u htstamp.%u - pricebits[0] %u -> lag.%d\n",now,komodo_heightstamp(nHeight-1),pricebits[0],lag2);
|
fprintf(stderr,"now.%u htstamp.%u - pricebits[0] %u -> lag.%d\n",now,komodo_heightstamp(nHeight-1),pricebits[0],lag);
|
||||||
|
return(-1);
|
||||||
|
}
|
||||||
|
if ( lag2 < 0 )
|
||||||
|
{
|
||||||
|
fprintf(stderr,"now.%u htstamp.%u - pricebits[0] %u -> lag2.%d\n",now,komodo_heightstamp(nHeight-1),pricebits[0],lag2);
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
// else need to check against current blocktime to prevent pricebits[0] games
|
// else need to check against current blocktime to prevent pricebits[0] games
|
||||||
|
|||||||
Reference in New Issue
Block a user