mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Fix difficulty calc for short chains
This commit is contained in:
parent
054114027f
commit
9d366fe492
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ where
|
|||
// the 71-15=56 pre genesis blocks will have
|
||||
// intervals/difficulties I1..I15 I1..I15 I1..I15 I1..I11
|
||||
for _ in 0..block_count_difference {
|
||||
last_ts = last_ts - live_intervals[interval_index].0;
|
||||
last_ts = last_ts.saturating_sub(live_intervals[interval_index].0);
|
||||
let last_diff = &live_intervals[interval_index].1;
|
||||
last_n.insert(0, Ok((last_ts, last_diff.clone())));
|
||||
interval_index = match interval_index {
|
||||
|
|
Loading…
Reference in a new issue