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)
}
}