mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-08 20:08:53 +00:00
Difficulty: temper long solvetime
This commit is contained in:
parent
003f0b3af3
commit
7f28f73bd6
@ -307,9 +307,9 @@ namespace cryptonote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for ( i = 1; i <= N; i++) {
|
for ( i = 1; i <= N; i++) {
|
||||||
// Ignore long solvetimes if they were preceeded by 3 or 6 fast solves.
|
// Temper long solvetime drops if they were preceded by 3 or 6 fast solves.
|
||||||
if ( i > 4 && TS[i]-TS[i-1] > 4*T && TS[i-1] - TS[i-4] < (16*T)/10 ) { ST = 2*T; }
|
if ( i > 4 && TS[i]-TS[i-1] > 5*T && TS[i-1] - TS[i-4] < (14*T)/10 ) { ST = 2*T; }
|
||||||
else if ( i > 7 && TS[i]-TS[i-1] > 4*T && TS[i-1] - TS[i-7] < 4*T ) { ST = 2*T; }
|
else if ( i > 7 && TS[i]-TS[i-1] > 5*T && TS[i-1] - TS[i-7] < 4*T ) { ST = 2*T; }
|
||||||
else { // Assume normal conditions, so get ST.
|
else { // Assume normal conditions, so get ST.
|
||||||
// LWMA drops too much from long ST, so limit drops with a 5*T limit
|
// LWMA drops too much from long ST, so limit drops with a 5*T limit
|
||||||
ST = std::min(5*T ,TS[i] - TS[i-1]);
|
ST = std::min(5*T ,TS[i] - TS[i-1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user