xyz.stratalab.node.services.FetchBlockIdAtHeightResValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.node.services
object FetchBlockIdAtHeightResValidator extends scalapb.validate.Validator[xyz.stratalab.node.services.FetchBlockIdAtHeightRes] {
def validate(input: xyz.stratalab.node.services.FetchBlockIdAtHeightRes): scalapb.validate.Result =
scalapb.validate.Result.optional(input.blockId) { _value =>
xyz.stratalab.consensus.models.BlockIdValidator.validate(_value)
}
}