Skip to content

Commit 6e0eca6

Browse files
committed
chore: move log before sleep
1 parent d734345 commit 6e0eca6

File tree

1 file changed

+2
-3
lines changed
  • testnet/stacks-node/src/nakamoto_node

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,14 @@ impl BlockMinerThread {
393393
} else {
394394
self.config.miner.first_rejection_pause_ms
395395
};
396-
thread::sleep(Duration::from_millis(pause_ms));
397-
last_block_rejected = true;
398396

399397
error!("Error while gathering signatures: {e:?}. Will try mining again in {pause_ms}.";
400398
"signer_sighash" => %new_block.header.signer_signature_hash(),
401399
"block_height" => new_block.header.chain_length,
402400
"consensus_hash" => %new_block.header.consensus_hash,
403401
);
404-
402+
thread::sleep(Duration::from_millis(pause_ms));
403+
last_block_rejected = true;
405404
continue;
406405
}
407406
},

0 commit comments

Comments
 (0)