Skip to content

Commit

Permalink
fix warning copypasta; log a warning when we timeout but met the thre…
Browse files Browse the repository at this point in the history
…shold
  • Loading branch information
xoloki committed Jan 3, 2024
1 parent 7c2ecb8 commit 7f3de3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl Packet {
match &self.msg {
Message::DkgBegin(msg) => {
if !msg.verify(&self.sig, coordinator_public_key) {
warn!("Received a DkgPrivateBegin message with an invalid signature.");
warn!("Received a DkgBegin message with an invalid signature.");
return false;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/state_machine/coordinator/fire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl<Aggregator: AggregatorTrait> Coordinator<Aggregator> {
));
} else {
// we hit the timeout but met the threshold, continue
warn!("Timeout gathering DkgPublicShares for dkg round {} signing round {} iteration {}, dkg_threshold was met ({}/{}), ", self.current_dkg_id, self.current_sign_id, self.current_sign_iter_id, dkg_size, self.config.dkg_threshold);
self.public_shares_gathered()?;
let packet = self.start_private_shares()?;
return Ok((Some(packet), None));
Expand Down

0 comments on commit 7f3de3a

Please sign in to comment.