Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasGasior1 committed Oct 26, 2017
1 parent 153f906 commit 40d1ad0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ object BlockHeaderValidatorImpl {
val MaxGasLimit = Long.MaxValue // max gasLimit is equal 2^63-1 according to EIP106
val MaxPowCaches: Int = 2 // maximum number of epochs for which PoW cache is stored in memory

case class PowCacheData(cache: Array[Int], dagSize: Long)
class PowCacheData(val cache: Array[Int], val dagSize: Long)
}

class BlockHeaderValidatorImpl(blockchainConfig: BlockchainConfig) extends BlockHeaderValidator {
Expand Down Expand Up @@ -181,7 +181,7 @@ class BlockHeaderValidatorImpl(blockchainConfig: BlockchainConfig) extends Block
Option(powCaches.get(epoch)) match {
case Some(pcd) => pcd
case None =>
val data = PowCacheData(
val data = new PowCacheData(
cache = Ethash.makeCache(epoch),
dagSize = Ethash.dagSize(epoch))

Expand Down

0 comments on commit 40d1ad0

Please sign in to comment.