From 0ee8e23c6a1d165175c59677918a002f07f2ec9b Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Fri, 5 Jan 2018 17:16:47 +0300 Subject: [PATCH] Base target calculation error was fixed --- src/main/scala/com/wavesplatform/state2/appender/package.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/wavesplatform/state2/appender/package.scala b/src/main/scala/com/wavesplatform/state2/appender/package.scala index 813e4594cff..3dd2dbd9187 100644 --- a/src/main/scala/com/wavesplatform/state2/appender/package.scala +++ b/src/main/scala/com/wavesplatform/state2/appender/package.scala @@ -95,7 +95,7 @@ package object appender extends ScorexLogging { _ <- Either.cond(calcGs.sameElements(blockGs), (), GenericError(s"declared generation signature ${blockGs.mkString} does not match calculated generation signature ${calcGs.mkString}")) effectiveBalance <- genBalance(height).left.map(GenericError(_)) hit = calcHit(prevBlockData, generator) - target = calcTarget(parent.consensusData.baseTarget, parent.timestamp, blockTime, effectiveBalance) + target = calcTarget(parent.timestamp, parent.consensusData.baseTarget, blockTime, effectiveBalance) _ <- Either.cond(hit < target, (), GenericError(s"calculated hit $hit >= calculated target $target")) } yield ()