xyz.stratalab.node.models.BlockValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.node.models
object BlockValidator extends scalapb.validate.Validator[xyz.stratalab.node.models.Block] {
def validate(input: xyz.stratalab.node.models.Block): scalapb.validate.Result =
xyz.stratalab.consensus.models.BlockHeaderValidator.validate(input.header) &&
xyz.stratalab.node.models.BlockBodyValidator.validate(input.body)
}