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
1266
+
returnOk(());
1267
+
}
1268
+
debug!("{self}: Checking if old DKG vote transaction exists in StackerDB...");
1269
+
// Have I already voted, but the vote is still pending in StackerDB? Check stackerdb for the same round number and reward cycle vote transaction
1270
+
// Only get the account nonce of THIS signer as we only care about our own votes, not other signer votes
1271
+
let signer_address = stacks_client.get_signer_address();
1272
+
let account_nonces = self.get_account_nonces(stacks_client,&[*signer_address]);
1273
+
let old_transactions = self.get_signer_transactions(&account_nonces).map_err(|e| {
1270
1274
warn!("{self}: Failed to get old signer transactions: {e:?}. May trigger DKG unnecessarily");
1271
1275
}).unwrap_or_default();
1272
-
// Check if we have an existing vote transaction for the same round and reward cycle
1273
-
for transaction in old_transactions.iter(){
1274
-
let params =
1276
+
// Check if we have an existing vote transaction for the same round and reward cycle
1277
+
for transaction in old_transactions.iter(){
1278
+
let params =
1275
1279
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