File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ impl SignerCoordinator {
390
390
391
391
if rejections != block_status. total_reject_weight as u64 {
392
392
rejections = block_status. total_reject_weight as u64 ;
393
- let rejections_timeout_tuple = self
393
+ let ( rejections_step , new_rejections_timeout ) = self
394
394
. block_rejection_timeout_steps
395
395
. range ( ( Included ( 0 ) , Included ( rejections) ) )
396
396
. last ( )
@@ -399,10 +399,11 @@ impl SignerCoordinator {
399
399
"Invalid rejection timeout step function definition" . into ( ) ,
400
400
)
401
401
} ) ?;
402
- rejections_timeout = rejections_timeout_tuple . 1 ;
402
+ rejections_timeout = new_rejections_timeout ;
403
403
info ! ( "Number of received rejections updated, resetting timeout" ;
404
404
"rejections" => rejections,
405
405
"rejections_timeout" => rejections_timeout. as_secs( ) ,
406
+ "rejections_step" => rejections_step,
406
407
"rejections_threshold" => self . total_weight. saturating_sub( self . weight_threshold) ) ;
407
408
408
409
Counters :: set (
Original file line number Diff line number Diff line change @@ -8111,6 +8111,9 @@ fn block_validation_check_rejection_timeout_heuristic() {
8111
8111
// reset reject/ignore
8112
8112
TEST_REJECT_ALL_BLOCK_PROPOSAL . set ( vec ! [ ] ) ;
8113
8113
TEST_IGNORE_ALL_BLOCK_PROPOSALS . set ( vec ! [ ] ) ;
8114
+
8115
+ info ! ( "------------------------- Shutdown -------------------------" ) ;
8116
+ signer_test. shutdown ( ) ;
8114
8117
}
8115
8118
8116
8119
/// Test scenario:
You can’t perform that action at this time.
0 commit comments