Skip to content

Commit

Permalink
Remove checking on proposal manager, since it is checked in voteplan …
Browse files Browse the repository at this point in the history
…manager
  • Loading branch information
danielsanchezq authored and Mikhail Zabaluev committed Oct 19, 2020
1 parent 88cad7e commit 527d1d1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions chain-impl-mockchain/src/vote/manager.rs
Expand Up @@ -113,18 +113,6 @@ impl ProposalManager {
cast: VoteCast,
) -> Result<Self, VoteError> {
let payload = cast.into_payload();
match &payload {
Payload::Public { .. } => {}
Payload::Private {
encrypted_vote,
proof,
} => {
// TODO: verify private vote. Need committee public member keys
// if !chain_vote::verify_vote(, encrypted_vote, proof) {
// return Err(VoteError::VoteVerificationError)
// }
}
}

// we don't mind if we are replacing a vote
let votes_by_voters =
Expand Down

0 comments on commit 527d1d1

Please sign in to comment.