/// Returns whether or not the added batches follow the rules. If `final_validation` is true,
/// all position-based rules will be enforced; if there is no batch/transaction at the position
/// required by a rule, validation will fail.
Returns whether or not the added batches follow the rules. If `final_validation` is true,
all position-based rules will be enforced; if there is no batch/transaction at the position
required by a rule, validation will fail.
Returns whether or not the added batches follow the rules . If ` final_validation ` is true all position - based rules will be enforced ; if there is no batch / transaction at the position required by a rule validation will fail .
pub fn validate(&self, final_validation: bool) -> bool {
        self.rules
            .iter()
            .all(|rule| rule.validate(&self.txn_info, &self.local_signer_key, final_validation))
    }
pub fn validate ( & self , final_validation : bool ) -> bool { self . rules . iter ( ) . all ( | rule | rule . validate ( & self . txn_info , & self . local_signer_key , final_validation ) ) }
Returns whether or not the added batches follow the rules.
Returns whether or not the added batches follow the rules .
&self
final_validation
bool