proposal.rs
2.4 KB · Rust · Updated May 14, 2026
- 1
pub struct Proposal { - 2
pub title: String, - 3
pub quorum: u64, - 4
pub attestations: Vec<String>, - 5
} - 6
- 7
impl Proposal { - 8
pub fn executable(&self) -> bool { - 9
self.quorum >= 51 && self.attestations.len() >= 2 - 10
} - 11
} - 12
