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

org.plasmalabs.node.services.SynchronizationTraversalResValidator.scala Maven / Gradle / Ivy

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

object SynchronizationTraversalResValidator extends scalapb.validate.Validator[org.plasmalabs.node.services.SynchronizationTraversalRes] {
  def validate(input: org.plasmalabs.node.services.SynchronizationTraversalRes): scalapb.validate.Result =
    scalapb.validate.Result.optional(input.status.applied) { _value =>
      org.plasmalabs.consensus.models.BlockIdValidator.validate(_value)
    } &&
    scalapb.validate.Result.optional(input.status.unapplied) { _value =>
      org.plasmalabs.consensus.models.BlockIdValidator.validate(_value)
    }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy