org.plasmalabs.node.models.BlockBodyValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.node.models
object BlockBodyValidator extends scalapb.validate.Validator[org.plasmalabs.node.models.BlockBody] {
def validate(input: org.plasmalabs.node.models.BlockBody): scalapb.validate.Result =
scalapb.validate.Result.repeated(input.transactionIds.iterator) { _value =>
org.plasmalabs.sdk.models.TransactionIdValidator.validate(_value)
} &&
scalapb.validate.Result.optional(input.rewardTransactionId) { _value =>
org.plasmalabs.sdk.models.TransactionIdValidator.validate(_value)
}
}