You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We are not the coordinator or we are in the middle of an operation. Do not attempt to queue DKG
1237
+
returnOk(());
1238
+
}
1239
+
debug!("{self}: Checking if old DKG vote transaction exists in StackerDB...");
1240
+
// Have I already voted, but the vote is still pending in StackerDB? Check stackerdb for the same round number and reward cycle vote transaction
1241
+
// Only get the account nonce of THIS signer as we only care about our own votes, not other signer votes
1242
+
let signer_address = stacks_client.get_signer_address();
1243
+
let account_nonces = self.get_account_nonces(stacks_client,&[*signer_address]);
1244
+
let old_transactions = self.get_signer_transactions(&account_nonces).map_err(|e| {
1241
1245
warn!("{self}: Failed to get old signer transactions: {e:?}. May trigger DKG unnecessarily");
1242
1246
}).unwrap_or_default();
1243
-
// Check if we have an existing vote transaction for the same round and reward cycle
1244
-
for transaction in old_transactions.iter(){
1245
-
let params =
1247
+
// Check if we have an existing vote transaction for the same round and reward cycle
1248
+
for transaction in old_transactions.iter(){
1249
+
let params =
1246
1250
NakamotoSigners::parse_vote_for_aggregate_public_key(transaction).unwrap_or_else(|| panic!("BUG: {self}: Received an invalid {SIGNERS_VOTING_FUNCTION_NAME} transaction in an already filtered list: {transaction:?}"));
0 commit comments