Fix scaling diff in blocks for mining (#1796)
This commit is contained in:
committed by
Ignotus Peverell
parent
f4eb116fbf
commit
64d584c2c6
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user