File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12732,7 +12732,7 @@ fn injected_signatures_are_ignored_across_boundaries() {
12732
12732
info!("Submitted tx {tx} in attempt to mine block N");
12733
12733
let mut new_signature_hash = None;
12734
12734
wait_for(30, || {
12735
- let accepted_signers = test_observer::get_stackerdb_chunks()
12735
+ let accepted_signers: HashSet<_> = test_observer::get_stackerdb_chunks()
12736
12736
.into_iter()
12737
12737
.flat_map(|chunk| chunk.modified_slots)
12738
12738
.filter_map(|chunk| {
@@ -12742,12 +12742,13 @@ fn injected_signatures_are_ignored_across_boundaries() {
12742
12742
new_signature_hash = Some(accepted.signer_signature_hash);
12743
12743
return non_ignoring_signers.iter().find(|key| {
12744
12744
key.verify(accepted.signer_signature_hash.bits(), &accepted.signature)
12745
- .is_ok ()
12745
+ .unwrap ()
12746
12746
});
12747
12747
}
12748
12748
None
12749
- });
12750
- Ok(accepted_signers.count() + ignoring_signers.len() == new_num_signers)
12749
+ })
12750
+ .collect();
12751
+ Ok(accepted_signers.len() + ignoring_signers.len() == new_num_signers)
12751
12752
})
12752
12753
.expect("FAIL: Timed out waiting for block proposal acceptance");
12753
12754
let new_signature_hash = new_signature_hash.expect("Failed to get new signature hash");
You can’t perform that action at this time.
0 commit comments