All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavesplatform.settings.SynchronizationSettings.scala Maven / Gradle / Ivy

The newest version!
package com.wavesplatform.settings

import com.wavesplatform.network.InvalidBlockStorageImpl.InvalidBlockStorageSettings
import com.wavesplatform.settings.SynchronizationSettings.*

import scala.concurrent.duration.FiniteDuration

case class SynchronizationSettings(
    maxRollback: Int,
    synchronizationTimeout: FiniteDuration,
    processedBlocksCacheTimeout: FiniteDuration,
    scoreTTL: FiniteDuration,
    maxBaseTarget: Option[Long],
    invalidBlocksStorage: InvalidBlockStorageSettings,
    microBlockSynchronizer: MicroblockSynchronizerSettings,
    historyReplier: HistoryReplierSettings,
    utxSynchronizer: UtxSynchronizerSettings
)

object SynchronizationSettings {
  case class MicroblockSynchronizerSettings(
      waitResponseTimeout: FiniteDuration,
      processedMicroBlocksCacheTimeout: FiniteDuration,
      invCacheTimeout: FiniteDuration
  )

  case class HistoryReplierSettings(maxMicroBlockCacheSize: Int, maxBlockCacheSize: Int)

  case class UtxSynchronizerSettings(networkTxCacheSize: Int, maxThreads: Int, maxQueueSize: Int, allowTxRebroadcasting: Boolean)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy