Skip to content

Commit

Permalink
Fixed a compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Nov 28, 2024
1 parent 2941309 commit e8f47f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down

0 comments on commit e8f47f9

Please sign in to comment.