@@ -1064,12 +1064,12 @@ fn wait_for_block_global_rejection(
1064
1064
}
1065
1065
1066
1066
/// Waits for >30% of num_signers block rejection to be observed in the test_observer stackerdb chunks for a block
1067
- /// with the provided signer signature hash and the specified reject_code
1068
- fn wait_for_block_global_rejection_with_reject_code (
1067
+ /// with the provided signer signature hash and the specified reject_reason
1068
+ fn wait_for_block_global_rejection_with_reject_reason (
1069
1069
timeout_secs : u64 ,
1070
1070
block_signer_signature_hash : Sha512Trunc256Sum ,
1071
1071
num_signers : usize ,
1072
- reject_code : RejectCode ,
1072
+ reject_reason : RejectReason ,
1073
1073
) -> Result < ( ) , String > {
1074
1074
let mut found_rejections = HashSet :: new ( ) ;
1075
1075
wait_for ( timeout_secs, || {
@@ -1082,12 +1082,12 @@ fn wait_for_block_global_rejection_with_reject_code(
1082
1082
if let SignerMessage :: BlockResponse ( BlockResponse :: Rejected ( BlockRejection {
1083
1083
signer_signature_hash,
1084
1084
signature,
1085
- reason_code ,
1085
+ response_data ,
1086
1086
..
1087
1087
} ) ) = message
1088
1088
{
1089
1089
if signer_signature_hash == block_signer_signature_hash
1090
- && reason_code == reject_code
1090
+ && response_data . reject_reason == reject_reason
1091
1091
{
1092
1092
found_rejections. insert ( signature) ;
1093
1093
}
@@ -10316,11 +10316,11 @@ fn disallow_reorg_within_first_proposal_burn_block_timing_secs_but_more_than_one
10316
10316
let proposed_block = wait_for_block_proposal ( 30 , block_n_height + 1 , & miner_pk_1)
10317
10317
. expect ( "Timed out waiting for block proposal" ) ;
10318
10318
// check it has been rejected
10319
- wait_for_block_global_rejection_with_reject_code (
10319
+ wait_for_block_global_rejection_with_reject_reason (
10320
10320
30 ,
10321
10321
proposed_block. header . signer_signature_hash ( ) ,
10322
10322
num_signers,
10323
- RejectCode :: SortitionViewMismatch ,
10323
+ RejectReason :: ReorgNotAllowed ,
10324
10324
)
10325
10325
. expect ( "Timed out waiting for a block proposal to be rejected due to invalid reorg" ) ;
10326
10326
0 commit comments