Skip to content

Commit

Permalink
Revert wrong implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoferre committed Oct 13, 2018
1 parent cce8a35 commit 26a0197
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/honey_badger/epoch_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,8 @@ where
is_done,
} = self.subset_handler.handle(cs_output);

let send_encryption = match self.encryption_schedule {
EncryptionSchedule::Always => true,
EncryptionSchedule::Never => false,
EncryptionSchedule::EveryNthEpoch(nth) => self.epoch % nth == 0,
};

for (k, v) in contributions {
if send_encryption {
step.extend(self.send_decryption_share(k.clone(), &v)?);
}
step.extend(self.send_decryption_share(k.clone(), &v)?);
self.accepted_proposers.insert(k);
}

Expand Down

0 comments on commit 26a0197

Please sign in to comment.