From 64d584c2c6c232b0210b98e5f8a77bdd8c899bc0 Mon Sep 17 00:00:00 2001 From: jaspervdm Date: Mon, 22 Oct 2018 23:34:23 +0200 Subject: [PATCH] Fix scaling diff in blocks for mining (#1796) --- servers/src/mining/mine_block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/src/mining/mine_block.rs b/servers/src/mining/mine_block.rs index bb9048898..aa89cdc49 100644 --- a/servers/src/mining/mine_block.rs +++ b/servers/src/mining/mine_block.rs @@ -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...