Add ValidationRule::allows_modification()

This commit is contained in:
Sosthene 2024-11-29 09:10:54 +01:00 committed by Nicolas Cantu
parent ec447ca409
commit e60ef13133

View File

@ -310,6 +310,10 @@ impl ValidationRule {
Ok(res)
}
pub fn allows_modification(&self) -> bool {
self.quorum > 0.0 && self.min_sig_member > 0.0
}
pub fn is_satisfied(
&self,
field: &str,