Skip to content

Commit 7f9c9bf

Browse files
committed
fix: remove extra logging
1 parent 74efa2c commit 7f9c9bf

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,6 @@ impl BlockMinerThread {
357357
.block_height_to_reward_cycle(burn_election_height)
358358
.expect("FATAL: no reward cycle for sortition");
359359

360-
#[cfg(test)]
361-
{
362-
info!(
363-
"---- Fetching reward info at height {} for cycle {} ----",
364-
burn_election_height, reward_cycle
365-
);
366-
}
367-
368360
let reward_info = match load_nakamoto_reward_set(
369361
reward_cycle,
370362
&self.burn_election_block.sortition_id,
@@ -393,14 +385,6 @@ impl BlockMinerThread {
393385
));
394386
};
395387

396-
#[cfg(test)]
397-
{
398-
info!(
399-
"---- New reward set has {} signers ----",
400-
reward_set.clone().signers.unwrap_or(vec![]).len(),
401-
);
402-
}
403-
404388
self.signer_set_cache = Some(reward_set.clone());
405389
Ok(reward_set)
406390
}

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,13 +642,6 @@ impl SignCoordinator {
642642
counters: &Counters,
643643
election_sortition: &ConsensusHash,
644644
) -> Result<Vec<MessageSignature>, NakamotoNodeError> {
645-
#[cfg(test)]
646-
{
647-
info!(
648-
"---- Sign coordinator starting. Burn tip height: {} ----",
649-
burn_tip.block_height
650-
);
651-
}
652645
let sign_id = Self::get_sign_id(burn_tip.block_height, burnchain);
653646
let sign_iter_id = block_attempt;
654647
let reward_cycle_id = burnchain
@@ -742,7 +735,7 @@ impl SignCoordinator {
742735
continue;
743736
};
744737
if signer_set != u32::try_from(reward_cycle_id % 2).unwrap() {
745-
info!("Received signer event for other reward cycle. Ignoring.");
738+
debug!("Received signer event for other reward cycle. Ignoring.");
746739
continue;
747740
};
748741
let slot_ids = modified_slots

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,6 +2080,7 @@ fn empty_sortition() {
20802080
assert!(matches!(reason_code, RejectCode::SortitionViewMismatch));
20812081
found_rejection = true;
20822082
} else {
2083+
error!("Unexpected message type: {:?}", message);
20832084
panic!("Unexpected message type");
20842085
}
20852086
}

0 commit comments

Comments
 (0)