com.wavesplatform.settings.MinerSettings.scala Maven / Gradle / Ivy
The newest version!
package com.wavesplatform.settings
import com.wavesplatform.account.PrivateKey
import com.wavesplatform.mining.Miner
import scala.concurrent.duration.FiniteDuration
case class MinerSettings(
enable: Boolean,
quorum: Int,
intervalAfterLastBlockThenGenerationIsAllowed: FiniteDuration,
noQuorumMiningDelay: FiniteDuration,
microBlockInterval: FiniteDuration,
minimalBlockGenerationOffset: FiniteDuration,
maxTransactionsInMicroBlock: Int,
minMicroBlockAge: FiniteDuration,
privateKeys: Seq[PrivateKey]
) {
require(maxTransactionsInMicroBlock <= Miner.MaxTransactionsPerMicroblock)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy