11//! Participant voting for the trusted `tee-verifier` contract account.
22//!
33//! `mpc-contract` verifies quotes against a single trusted verifier contract
4- //! account, chosen by a threshold vote of active participants, each committing
4+ //! account, chosen by a governance- threshold vote of active participants, each committing
55//! to the `(account_id, code_hash)` pair they audited off-chain.
66
77use crate :: {
@@ -58,7 +58,7 @@ impl Default for TeeVerifierVotes {
5858
5959impl TeeVerifierVotes {
6060 /// Records the participant's vote for the proposal. Returns the winning
61- /// candidate account once it crosses the signing threshold (votes from
61+ /// candidate account once it crosses the governance threshold (votes from
6262 /// dropped participants don't count); on a win, all pending votes are
6363 /// cleared and the caller must apply the new verifier account.
6464 pub fn vote (
@@ -67,7 +67,7 @@ impl TeeVerifierVotes {
6767 participant : AuthenticatedParticipantId ,
6868 threshold_parameters : & GovernanceThresholdParameters ,
6969 ) -> Result < Option < AccountId > , Error > {
70- let protocol_threshold = threshold_parameters. threshold ( ) . value ( ) ;
70+ let governance_threshold = threshold_parameters. threshold ( ) . value ( ) ;
7171 let participants = threshold_parameters. participants ( ) ;
7272 let proposal_hash: ProposalHash = proposal. clone ( ) . into ( ) ;
7373
@@ -79,7 +79,7 @@ impl TeeVerifierVotes {
7979 reason : format ! ( "vote count {count_usize} does not fit in u64: {e}" ) ,
8080 } ) ?;
8181
82- if count >= protocol_threshold {
82+ if count >= governance_threshold {
8383 self . pending . clear ( ) ;
8484 Ok ( Some ( proposal. candidate_account_id ) )
8585 } else {
0 commit comments