Skip to content

Commit fe429f4

Browse files
committed
report rejection step in miner log, ensure signe_test shutdown in integration test
1 parent eb883ee commit fe429f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

testnet/stacks-node/src/nakamoto_node/signer_coordinator.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl SignerCoordinator {
390390

391391
if rejections != block_status.total_reject_weight as u64 {
392392
rejections = block_status.total_reject_weight as u64;
393-
let rejections_timeout_tuple = self
393+
let (rejections_step, new_rejections_timeout) = self
394394
.block_rejection_timeout_steps
395395
.range((Included(0), Included(rejections)))
396396
.last()
@@ -399,10 +399,11 @@ impl SignerCoordinator {
399399
"Invalid rejection timeout step function definition".into(),
400400
)
401401
})?;
402-
rejections_timeout = rejections_timeout_tuple.1;
402+
rejections_timeout = new_rejections_timeout;
403403
info!("Number of received rejections updated, resetting timeout";
404404
"rejections" => rejections,
405405
"rejections_timeout" => rejections_timeout.as_secs(),
406+
"rejections_step" => rejections_step,
406407
"rejections_threshold" => self.total_weight.saturating_sub(self.weight_threshold));
407408

408409
Counters::set(

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8111,6 +8111,9 @@ fn block_validation_check_rejection_timeout_heuristic() {
81118111
// reset reject/ignore
81128112
TEST_REJECT_ALL_BLOCK_PROPOSAL.set(vec![]);
81138113
TEST_IGNORE_ALL_BLOCK_PROPOSALS.set(vec![]);
8114+
8115+
info!("------------------------- Shutdown -------------------------");
8116+
signer_test.shutdown();
81148117
}
81158118

81168119
/// Test scenario:

0 commit comments

Comments
 (0)