Skip to content

Commit

Permalink
Change vec to hashset in wait_for_block_rejections
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Oct 1, 2024
1 parent 4d1f9a9 commit 61eab90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testnet/stacks-node/src/tests/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,16 +617,16 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
.recover_public_key()
.expect("Failed to recover public key from rejection");
if expected_signers.contains(&rejected_pubkey) {
Some(rejection)
Some(rejected_pubkey)
} else {
None
}
}
_ => None,
}
})
.collect::<Vec<_>>();
Ok(block_rejections.len() >= expected_signers.len())
.collect::<HashSet<_>>();
Ok(block_rejections.len() == expected_signers.len())
})
}
}
Expand Down

0 comments on commit 61eab90

Please sign in to comment.