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