Skip to content

Commit

Permalink
chore: address PR nits
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed Apr 12, 2024
1 parent da120a8 commit 344388b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stacks-signer/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,15 +1292,13 @@ impl Signer {
self.approved_aggregate_public_key
);
}
if matches!(self.state, State::OperationInProgress(Operation::Dkg)) {
if let State::OperationInProgress(Operation::Dkg) = self.state {
debug!(
"{self}: DKG has already been set. Aborting DKG operation {}.",
self.coordinator.current_dkg_id
"{self}: DKG has already been set. Aborting DKG operation {self.coordinator.current_dkg_id}."
);
self.finish_operation();
}
} else if should_queue {
info!("{self} is the current coordinator and must trigger DKG. Queuing DKG command...");
if self.commands.front() != Some(&Command::Dkg) {
info!("{self} is the current coordinator and must trigger DKG. Queuing DKG command...");
self.commands.push_front(Command::Dkg);
Expand Down

0 comments on commit 344388b

Please sign in to comment.