miner: better cheating.
This commit is contained in:
parent
1c08beba0a
commit
6dcfdc02fd
@ -549,11 +549,11 @@ function cmpRate(a, b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cheat(prevTime, medianTime, now, targetSpacing) {
|
function cheat(prevTime, medianTime, now, targetSpacing) {
|
||||||
var resetTime = prevTime + (targetSpacing * 2) + 1;
|
var resetTime = prevTime + (targetSpacing * 3);
|
||||||
|
|
||||||
// Already easy.
|
// Already easy.
|
||||||
if (now <= resetTime)
|
if (now >= resetTime)
|
||||||
return medianTime + 1;
|
return now;
|
||||||
|
|
||||||
// time-too-new - 30 min
|
// time-too-new - 30 min
|
||||||
if (resetTime > now + (1.5 * 60 * 60))
|
if (resetTime > now + (1.5 * 60 * 60))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user