refactor: renaming threshold in verifier_votes.rs and reducing code redundancy - #4239
refactor: renaming threshold in verifier_votes.rs and reducing code redundancy#4239SimonRastikian wants to merge 11 commits into
Conversation
Pull request overviewThis PR is a test-only refactor of Changes:
Reviewed changesPer-file summary
FindingsBlocking (must fix before merge):
Non-blocking (nits, follow-ups, suggestions):
I could not execute |
94f8391 to
afaea0b
Compare
afaea0b to
4949caa
Compare
…pc into renaming-threshold-verifier_votes
|
@claude review |
Pull request overviewThis PR completes the threshold-terminology rename for the TEE verifier voting path and collapses the repetition in the All blocking and non-blocking points from the previous round are addressed: the production rename and doc corrections landed, the panicking helper is now Changes:
Reviewed changesPer-file summary
FindingsBlocking (must fix before merge):
Non-blocking (nits, follow-ups, suggestions):
I have no write access to the working tree in this environment, so I could not run |
| fn must_cast( | ||
| &mut self, | ||
| voter: usize, | ||
| proposal: &VerifierChangeProposal, | ||
| ) -> Option<AccountId> { | ||
| self.votes | ||
| .vote(proposal.clone(), self.voters[voter].clone(), &self.params) | ||
| .unwrap() | ||
| } |
There was a problem hiding this comment.
nit: that the function name is must_cast is very weird, but I think it is a misunderstanding @netrome raised in one of my PRs a few weeks ago. This function should be called something like cast_votes
While closing partly #3903 (verifier_votes.rs), I stumbled upon high redundancy in the tests that I couldn't help but shrink.