mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Fix scaling diff in blocks for mining (#1796)
This commit is contained in:
parent
f4eb116fbf
commit
64d584c2c6
1 changed files with 1 additions and 1 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue