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

com.wavesplatform.mining.microblocks.MicroBlockMiningError.scala Maven / Gradle / Ivy

The newest version!
package com.wavesplatform.mining.microblocks

import com.wavesplatform.block.MicroBlock
import com.wavesplatform.lang.ValidationError

import scala.util.control.NoStackTrace

sealed abstract class MicroBlockMiningError(message: String)                extends Throwable(s"Error while mining microblock: $message") with NoStackTrace
final case class MicroBlockAppendError(mb: MicroBlock, ve: ValidationError) extends MicroBlockMiningError(s"Could not append microblock ($mb) - $ve")
final case class MicroBlockBuildError(ve: ValidationError)                  extends MicroBlockMiningError(s"Could not build microblock: $ve")
final case class BlockBuildError(ve: ValidationError)                       extends MicroBlockMiningError(s"Could not build accumulated block: $ve")




© 2015 - 2025 Weber Informatics LLC | Privacy Policy