diff --git a/benchmark/src/test/scala/com/wavesplatform/RollbackBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/RollbackBenchmark.scala index 3fc7277ab4..3d351a7955 100644 --- a/benchmark/src/test/scala/com/wavesplatform/RollbackBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/RollbackBenchmark.scala @@ -12,7 +12,7 @@ import com.wavesplatform.state.{Portfolio, StateSnapshot} import com.wavesplatform.transaction.Asset.IssuedAsset import com.wavesplatform.transaction.assets.IssueTransaction import com.wavesplatform.transaction.{GenesisTransaction, Proofs, TxDecimals, TxPositiveAmount} -import com.wavesplatform.utils.{NTP, ScorexLogging} +import com.wavesplatform.utils.{NTP, ScorexLogging, SystemTime, Time} import java.io.File import scala.collection.immutable.VectorMap @@ -21,7 +21,7 @@ object RollbackBenchmark extends ScorexLogging { def main(args: Array[String]): Unit = { val settings = Application.loadApplicationConfig(Some(new File(args(0)))) val rdb = RDB.open(settings.dbSettings) - val time = new NTP(settings.ntpServer) + val time = settings.ntpServer.fold[Time](SystemTime)(new NTP(_)) val rocksDBWriter = RocksDBWriter(rdb, settings.blockchainSettings, settings.dbSettings, settings.enableLightMode) val issuer = KeyPair(new Array[Byte](32))