Skip to content

Commit 4ada7e2

Browse files
committed
fix: shorten miner thread ID string, and add a bump-blocks-processed call when we process a sortition (just as we have in neon node)
1 parent 545fcfe commit 4ada7e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ impl RelayerThread {
453453
increment_stx_blocks_mined_counter();
454454
}
455455
self.globals.set_last_sortition(sn.clone());
456+
self.globals.counters.bump_blocks_processed();
456457

457458
// there may be a bufferred stacks block to process, so wake up the coordinator to check
458459
self.globals.coord_comms.announce_new_stacks_block();
@@ -812,10 +813,7 @@ impl RelayerThread {
812813
)?;
813814

814815
let new_miner_handle = std::thread::Builder::new()
815-
.name(format!(
816-
"miner.{parent_tenure_start} (bound ({},{})",
817-
&self.config.node.p2p_bind, &self.config.node.rpc_bind
818-
))
816+
.name(format!("miner.{parent_tenure_start}",))
819817
.stack_size(BLOCK_PROCESSOR_STACK_SIZE)
820818
.spawn(move || new_miner_state.run_miner(prior_tenure_thread))
821819
.map_err(|e| {

0 commit comments

Comments
 (0)