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

org.plasmalabs.node.models.FullBlockBodyValidator.scala Maven / Gradle / Ivy

The newest version!
package org.plasmalabs.node.models

object FullBlockBodyValidator extends scalapb.validate.Validator[org.plasmalabs.node.models.FullBlockBody] {
  def validate(input: org.plasmalabs.node.models.FullBlockBody): scalapb.validate.Result =
    scalapb.validate.Result.repeated(input.transactions.iterator) { _value =>
      org.plasmalabs.sdk.models.transaction.IoTransactionValidator.validate(_value)
    } &&
    scalapb.validate.Result.optional(input.rewardTransaction) { _value =>
      org.plasmalabs.sdk.models.transaction.IoTransactionValidator.validate(_value)
    }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy