This commit is contained in:
Ignotus Peverell 2018-10-26 16:28:15 -07:00 committed by GitHub
parent 6f3ae4563a
commit bb5392548f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -501,7 +501,7 @@ fn secondary_pow_scale() {
let mut low_hi = HeaderInfo::from_diff_scaling(Difficulty::from_num(10), MIN_DIFFICULTY as u32); let mut low_hi = HeaderInfo::from_diff_scaling(Difficulty::from_num(10), MIN_DIFFICULTY as u32);
low_hi.is_secondary = true; low_hi.is_secondary = true;
assert_eq!( assert_eq!(
secondary_pow_scaling(890_000, &(0..window).map(|_| low_hi.clone()).collect()::<Vec<_>>), secondary_pow_scaling(890_000, &(0..window).map(|_| low_hi.clone()).collect::<Vec<_>>()),
MIN_DIFFICULTY as u32 MIN_DIFFICULTY as u32
); );
// just about the right ratio, also no longer playing with median // just about the right ratio, also no longer playing with median