Skip to content

Commit d4171d7

Browse files
committed
do not reset rejections_timer on block_status updates
1 parent 7cfbfdd commit d4171d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ impl SignerCoordinator {
326326
let mut block_status_tracker = BlockStatus::default();
327327

328328
// this is used to track the start of the waiting cycle
329-
let mut rejections_timer = Instant::now();
329+
let rejections_timer = Instant::now();
330330
loop {
331331
// At every iteration wait for the block_status.
332332
// Exit when the amount of confirmations/rejections reaches the threshold (or until timeout)
@@ -410,7 +410,6 @@ impl SignerCoordinator {
410410
"rejections" => rejections,
411411
"rejections_timeout" => rejections_timeout.as_secs(),
412412
"rejections_threshold" => self.total_weight.saturating_sub(self.weight_threshold));
413-
rejections_timer = Instant::now();
414413

415414
Counters::set(
416415
&counters.naka_miner_current_rejections_timeout_secs,

0 commit comments

Comments
 (0)