Fix scaling diff in blocks for mining (#1796)

This commit is contained in:
jaspervdm 2018-10-22 23:34:23 +02:00 committed by Ignotus Peverell
parent f4eb116fbf
commit 64d584c2c6

View file

@ -105,7 +105,7 @@ fn build_block(
// Determine the difficulty our block should be at.
// Note: do not keep the difficulty_iter in scope (it has an active batch).
let difficulty = consensus::next_difficulty(1, chain.difficulty_iter());
let difficulty = consensus::next_difficulty(head.height + 1, chain.difficulty_iter());
// extract current transaction from the pool
// TODO - we have a lot of unwrap() going on in this fn...