Skip to content

Commit

Permalink
Merge pull request #264 from wavesplatform/fix-testnet-validation
Browse files Browse the repository at this point in the history
Testnet validation timestamp was corrected.
  • Loading branch information
alexeykiselev authored Apr 26, 2017
2 parents a746f62 + 337648f commit 96ff2b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object FunctionalitySettings {
requireSortedTransactionsAfter = 1477958400000L,
generatingBalanceDepthFrom50To1000AfterHeight = Long.MinValue,
minimalGeneratingBalanceAfterTimestamp = Long.MinValue,
allowTransactionsFromFutureUntil = Long.MinValue,
allowTransactionsFromFutureUntil = 1478100000000L,
allowUnissuedAssetsUntil = 1479416400000L,
allowBurnTransactionAfterTimestamp = 1481110521000L,
allowLeaseTransactionAfterTimestamp = Long.MinValue,
Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/scorex/app/RunnableApplication.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import scala.concurrent.duration._
import scala.reflect.runtime.universe.Type
import scala.util.Try

import com.wavesplatform.state2._

trait RunnableApplication extends Application with Shutdownable with ScorexLogging {

protected val apiRoutes: Seq[ApiRoute]
Expand Down Expand Up @@ -123,7 +125,7 @@ trait RunnableApplication extends Application with Shutdownable with ScorexLoggi
val maybeGenesisSignature = Option(settings.blockchainSettings.genesisSettings.signature).filter(_.trim.nonEmpty)

transactionModule.blockStorage.blockchainUpdater.processBlock(Block.genesis(consensusModule.genesisData, transactionModule.genesisData,
settings.blockchainSettings.genesisSettings.blockTimestamp, maybeGenesisSignature))
settings.blockchainSettings.genesisSettings.blockTimestamp, maybeGenesisSignature)).explicitGet()

log.info("Genesis block has been added to the state")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class BlockchainSettingsSpecification extends FlatSpec with Matchers {
settings.functionalitySettings.requireSortedTransactionsAfter should be(1477958400000L)
settings.functionalitySettings.generatingBalanceDepthFrom50To1000AfterHeight should be(Long.MinValue)
settings.functionalitySettings.minimalGeneratingBalanceAfterTimestamp should be(Long.MinValue)
settings.functionalitySettings.allowTransactionsFromFutureUntil should be(Long.MinValue)
settings.functionalitySettings.allowTransactionsFromFutureUntil should be(1478100000000L)
settings.functionalitySettings.allowUnissuedAssetsUntil should be(1479416400000L)
settings.functionalitySettings.allowBurnTransactionAfterTimestamp should be(1481110521000L)
settings.functionalitySettings.requirePaymentUniqueId should be(1485942685000L)
Expand Down

0 comments on commit 96ff2b7

Please sign in to comment.