Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiloc committed Feb 6, 2025
1 parent 3d16785 commit d16bf2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions signer/src/transaction_coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,9 @@ where
tokio::pin!(signal_stream);

let future = async {
let mut pending_signer = wallet.public_keys().clone();
let mut pending_signers = wallet.public_keys().clone();

while pending_signer.len() < signatures_required {
while wallet.public_keys().len() - pending_signers.len() < signatures_required {
// If signal_stream.next() returns None then one of the
// underlying streams has closed. That means either the
// network stream, the internal message stream, or the
Expand Down Expand Up @@ -961,7 +961,7 @@ where
let recovered_key = sig.signature.recover_ecdsa(multi_tx.digest());

if let Ok(key) = recovered_key {
pending_signer.remove(&key);
pending_signers.remove(&key);
}

// Stop collecting signatures once we have enough, but keep tracking responses
Expand Down

0 comments on commit d16bf2a

Please sign in to comment.