@@ -2,10 +2,13 @@ package io.iohk.ethereum
2
2
package consensus
3
3
package ethash
4
4
5
+ import java .util .concurrent .atomic .AtomicReference
6
+
5
7
import akka .actor .ActorRef
6
8
import akka .util .Timeout
7
9
import io .iohk .ethereum .consensus .Protocol .{Ethash , MockedPow }
8
10
import io .iohk .ethereum .consensus .blocks .TestBlockGenerator
11
+ import io .iohk .ethereum .consensus .difficulty .DifficultyCalculator
9
12
import io .iohk .ethereum .consensus .ethash .MinerResponses .MinerNotExist
10
13
import io .iohk .ethereum .consensus .ethash .blocks .{EthashBlockGenerator , EthashBlockGeneratorImpl }
11
14
import io .iohk .ethereum .consensus .ethash .validators .ValidatorsExecutor
@@ -15,9 +18,6 @@ import io.iohk.ethereum.ledger.BlockPreparator
15
18
import io .iohk .ethereum .ledger .Ledger .VMImpl
16
19
import io .iohk .ethereum .nodebuilder .Node
17
20
import io .iohk .ethereum .utils .{BlockchainConfig , Logger }
18
- import java .util .concurrent .atomic .AtomicReference
19
-
20
- import io .iohk .ethereum .consensus .ethash .difficulty .EthashDifficultyCalculator
21
21
22
22
import scala .concurrent .Future
23
23
import scala .concurrent .duration ._
@@ -32,7 +32,7 @@ class EthashConsensus private (
32
32
val config : FullConsensusConfig [EthashConfig ],
33
33
val validators : ValidatorsExecutor ,
34
34
val blockGenerator : EthashBlockGenerator ,
35
- val difficultyCalculator : EthashDifficultyCalculator
35
+ val difficultyCalculator : DifficultyCalculator
36
36
) extends TestConsensus
37
37
with Logger {
38
38
@@ -178,7 +178,7 @@ object EthashConsensus {
178
178
validators : ValidatorsExecutor
179
179
): EthashConsensus = {
180
180
181
- val difficultyCalculator = new EthashDifficultyCalculator (blockchainConfig)
181
+ val difficultyCalculator = DifficultyCalculator (blockchainConfig)
182
182
183
183
val blockPreparator = new BlockPreparator (
184
184
vm = vm,
0 commit comments