Fix chain tests missing difficulty scaling

This commit is contained in:
Ignotus Peverell
2018-10-15 22:24:13 +00:00
parent eeb7680981
commit 3c6b5a0a9c
4 changed files with 11 additions and 15 deletions
-7
View File
@@ -312,13 +312,6 @@ pub fn secondary_pow_scaling(height: u64, diff_data: &Vec<HeaderInfo>) -> u32 {
// what's the ideal ratio at the current height
let ratio = secondary_pow_ratio(height);
println!(
"-- {} {} {} {}",
scaling_median,
secondary_count,
diff_data.len(),
ratio
);
// adjust the past median based on ideal ratio vs actual ratio
let scaling = scaling_median * diff_data.len() as u64 * ratio / 100 / secondary_count as u64;