Skip to content

Commit fe62c56

Browse files
author
Łukasz Gąsior
committed
Fix
1 parent 380e8a0 commit fe62c56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/scala/io/iohk/ethereum/testmode/TestmodeConsensus.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package io.iohk.ethereum.testmode
33
import akka.util.ByteString
44
import io.iohk.ethereum.consensus._
55
import io.iohk.ethereum.consensus.blocks.{BlockTimestampProvider, NoOmmersBlockGenerator, TestBlockGenerator}
6+
import io.iohk.ethereum.consensus.difficulty.DifficultyCalculator
7+
import io.iohk.ethereum.consensus.ethash.difficulty.EthashDifficultyCalculator
68
import io.iohk.ethereum.consensus.validators._
79
import io.iohk.ethereum.consensus.validators.std.{StdBlockValidator, StdSignedTransactionValidator}
810
import io.iohk.ethereum.domain.{Block, BlockHeader, BlockchainImpl, Receipt}
@@ -53,6 +55,8 @@ class TestmodeConsensus(
5355
override def getEpochSecond: Long = blockTimestamp
5456
}) {
5557
override def withBlockTimestampProvider(blockTimestampProvider: BlockTimestampProvider): TestBlockGenerator = this
58+
59+
override protected def difficulty: DifficultyCalculator = new EthashDifficultyCalculator(blockchainConfig)
5660
}
5761

5862
override def startProtocol(node: Node): Unit = {}

0 commit comments

Comments
 (0)