CRC: cleanup logging

Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
Jacinta Ferrant
2024-02-19 17:33:05 -05:00
parent 9cce191a5b
commit 867198119d
4 changed files with 11 additions and 8 deletions

View File

@@ -520,7 +520,6 @@ impl StacksClient {
/// Get the current reward cycle from the stacks node
pub fn get_current_reward_cycle(&self) -> Result<u64, ClientError> {
let pox_data = self.get_pox_data()?;
println!("GOT REWARD CYCLE: {}", pox_data.reward_cycle_id);
Ok(pox_data.reward_cycle_id)
}

View File

@@ -289,10 +289,10 @@ impl RegisteredSigner {
// The dkg id will increment internally following "start_dkg_round" so do not increment it here
self.coordinator.current_dkg_id = vote_round.unwrap_or(0);
info!(
"Signer #{}: Starting DKG vote round {}, for reward cycle {}",
self.signer_id,
self.coordinator.current_dkg_id.wrapping_add(1),
self.reward_cycle
"Signer #{}: Starting DKG vote",
self.signer_id;
"round" => self.coordinator.current_dkg_id.wrapping_add(1),
"cycle" => self.reward_cycle,
);
match self.coordinator.start_dkg_round() {
Ok(msg) => {
@@ -319,7 +319,11 @@ impl RegisteredSigner {
debug!("Signer #{}: Received a sign command for a block we are already signing over. Ignore it.", self.signer_id);
return;
}
info!("Signer #{}: Signing block: {block:?}", self.signer_id);
info!("Signer #{}: Signing block", self.signer_id;
"block_consensus_hash" => %block.header.consensus_hash,
"block_height" => block.header.chain_length,
"pre_sign_block_id" => %block.block_id(),
);
match self.coordinator.start_signing_round(
&block.serialize_to_vec(),
*is_taproot,

View File

@@ -411,7 +411,7 @@ impl BlockMinerThread {
{
// The signature is valid across the signer signature hash of the original proposed block
// Immediately return and update the block with this new signature before appending it to the chain
test_debug!("Miner: received a signature accross the proposed block's signer signature hash ({signer_signature_hash:?}): {signature:?}");
debug!("Miner: received a signature accross the proposed block's signer signature hash ({signer_signature_hash:?}): {signature:?}");
return Ok(signature);
}
// We received an accepted block for some unknown block hash...Useless! Ignore it.

View File

@@ -490,7 +490,7 @@ impl RunLoop {
}) as Box<dyn FnOnce(&mut ClarityTx)>;
Some(callback)
} else {
warn!("Neon node booting with no aggregate public key. Must have signers available to sign blocks.");
debug!("Neon node booting with no aggregate public key. Must have signers available to sign blocks.");
None
};