Secondary PoW scaling factor dampening, cleanup (#1765)

* Remove useless time median window
* Secondary PoW factor dampening
* Fix off-by-one in time window, cleanup dampening, fix tests
This commit is contained in:
Ignotus Peverell
2018-10-16 16:55:40 -07:00
committed by GitHub
parent 67bc891455
commit fffe5154d2
4 changed files with 37 additions and 93 deletions
-1
View File
@@ -400,7 +400,6 @@ impl Server {
let last_blocks: Vec<consensus::HeaderInfo> =
global::difficulty_data_to_vector(self.chain.difficulty_iter())
.into_iter()
.skip(consensus::MEDIAN_TIME_WINDOW as usize)
.take(consensus::DIFFICULTY_ADJUST_WINDOW as usize)
.collect();