File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
testnet/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 @@ -727,7 +727,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
727
727
) -> Result < ( ) , String > {
728
728
wait_for ( timeout_secs, || {
729
729
let stackerdb_events = test_observer:: get_stackerdb_chunks ( ) ;
730
- let block_rejections = stackerdb_events
730
+ let block_rejections: HashSet < _ > = stackerdb_events
731
731
. into_iter ( )
732
732
. flat_map ( |chunk| chunk. modified_slots )
733
733
. filter_map ( |chunk| {
@@ -739,16 +739,17 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
739
739
. recover_public_key ( )
740
740
. expect ( "Failed to recover public key from rejection" ) ;
741
741
if expected_signers. contains ( & rejected_pubkey) {
742
- Some ( rejection )
742
+ Some ( rejected_pubkey )
743
743
} else {
744
744
None
745
745
}
746
746
}
747
747
_ => None ,
748
748
}
749
749
} )
750
- . collect :: < Vec < _ > > ( ) ;
751
- Ok ( block_rejections. len ( ) == expected_signers. len ( ) )
750
+ . collect ( ) ;
751
+ info ! ( "Checking block rejections" ; "rejected_len" => block_rejections. len( ) , "expected_len" => expected_signers. len( ) ) ;
752
+ Ok ( block_rejections. len ( ) >= expected_signers. len ( ) )
752
753
} )
753
754
}
754
755
}
You can’t perform that action at this time.
0 commit comments