mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
use the predefined diff variable for next-diff
This commit is contained in:
parent
fbc506b1f5
commit
65d056aeae
1 changed files with 5 additions and 5 deletions
|
@ -879,15 +879,15 @@ difficulty_type Blockchain::get_difficulty_for_next_block()
|
|||
difficulty_type diff = next_difficulty(timestamps, difficulties, target);
|
||||
|
||||
if (version >= 11) {
|
||||
difficulty_type diff = next_difficulty_v5(timestamps, difficulties, target);
|
||||
diff = next_difficulty_v5(timestamps, difficulties, target);
|
||||
} else if (version == 10) {
|
||||
difficulty_type diff = next_difficulty_v4(timestamps, difficulties, height);
|
||||
diff = next_difficulty_v4(timestamps, difficulties, height);
|
||||
} else if (version == 9) {
|
||||
difficulty_type diff = next_difficulty_v3(timestamps, difficulties);
|
||||
diff = next_difficulty_v3(timestamps, difficulties);
|
||||
} else if (version == 8) {
|
||||
difficulty_type diff = next_difficulty_v2(timestamps, difficulties, target);
|
||||
diff = next_difficulty_v2(timestamps, difficulties, target);
|
||||
} else {
|
||||
difficulty_type diff = next_difficulty(timestamps, difficulties, target);
|
||||
diff = next_difficulty(timestamps, difficulties, target);
|
||||
}
|
||||
|
||||
CRITICAL_REGION_LOCAL1(m_difficulty_lock);
|
||||
|
|
Loading…
Reference in a new issue