proposal.rs

2.4 KB · Rust · Updated May 14, 2026

View folder
  1. 1pub struct Proposal {
  2. 2 pub title: String,
  3. 3 pub quorum: u64,
  4. 4 pub attestations: Vec<String>,
  5. 5}
  6. 6
  7. 7impl Proposal {
  8. 8 pub fn executable(&self) -> bool {
  9. 9 self.quorum >= 51 && self.attestations.len() >= 2
  10. 10 }
  11. 11}
  12. 12