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