Skip to content

Commit

Permalink
chore: clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed Apr 9, 2024
1 parent 021c0a9 commit 0598e6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stacks-signer/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,10 @@ impl Signer {
pub fn refresh_dkg(&mut self, stacks_client: &StacksClient) -> Result<(), ClientError> {
// First check if we should queue DKG based on contract vote state and stackerdb transactions
let should_queue = self.should_queue_dkg(stacks_client)?;
// Before queueing the command, check one last time if DKG has been approved (could have happend in the meantime)
// Before queueing the command, check one last time if DKG has been
// approved. It could have happened after the last call to
// `get_approved_aggregate_key` but before the theshold check in
// `should_queue_dkg`.
let old_dkg = self.approved_aggregate_public_key;
self.approved_aggregate_public_key =
stacks_client.get_approved_aggregate_key(self.reward_cycle)?;
Expand Down

0 comments on commit 0598e6e

Please sign in to comment.