Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into feat/mock-signing-in-2.5
  • Loading branch information
jferrant committed Jul 31, 2024
2 parents cad5eea + 98b7d3d commit c394a08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stacks-signer/src/runloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl<Signer: SignerTrait<T>, T: StacksMessageCodec + Clone + Send + Debug> RunLo
self.refresh_signer_config(next_reward_cycle);
}
} else {
debug!("Received a new burnchain block height ({current_burn_block_height}) but not in prepare phase.";
info!("Received a new burnchain block height ({current_burn_block_height}) but not in prepare phase.";
"reward_cycle" => reward_cycle_info.reward_cycle,
"reward_cycle_length" => reward_cycle_info.reward_cycle_length,
"prepare_phase_block_length" => reward_cycle_info.prepare_phase_block_length,
Expand Down
8 changes: 4 additions & 4 deletions stacks-signer/src/v0/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl SignerTrait<SignerMessage> for Signer {
burn_header_hash,
received_time,
} => {
debug!("{self}: Received a new burn block event for block height {burn_height}");
info!("{self}: Received a new burn block event for block height {burn_height}");
if let Err(e) =
self.signer_db
.insert_burn_block(burn_header_hash, *burn_height, received_time)
Expand Down Expand Up @@ -296,7 +296,7 @@ impl Signer {
return;
}

debug!(
info!(
"{self}: received a block proposal for a new block. Submit block for validation. ";
"signer_sighash" => %signer_signature_hash,
"block_id" => %block_proposal.block.block_id(),
Expand Down Expand Up @@ -397,7 +397,7 @@ impl Signer {

/// Handle the block validate response returned from our prior calls to submit a block for validation
fn handle_block_validate_response(&mut self, block_validate_response: &BlockValidateResponse) {
debug!("{self}: Received a block validate response: {block_validate_response:?}");
info!("{self}: Received a block validate response: {block_validate_response:?}");
let (response, block_info) = match block_validate_response {
BlockValidateResponse::Ok(block_validate_ok) => {
crate::monitoring::increment_block_validation_responses(true);
Expand Down Expand Up @@ -483,7 +483,7 @@ impl Signer {
} else {
CHAIN_ID_TESTNET
};
debug!("Mock signing for burn block {burn_block_height:?}";
info!("Mock signing for burn block {burn_block_height:?}";
"stacks_tip_consensus_hash" => ?peer_view.stacks_tip_consensus_hash.clone(),
"stacks_tip" => ?peer_view.stacks_tip.clone(),
"peer_burn_block_height" => peer_view.burn_block_height,
Expand Down
8 changes: 4 additions & 4 deletions stacks-signer/src/v1/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl SignerTrait<SignerMessage> for Signer {
};
match event {
SignerEvent::BlockValidationResponse(block_validate_response) => {
debug!("{self}: Received a block proposal result from the stacks node...");
info!("{self}: Received a block proposal result from the stacks node...");
self.handle_block_validate_response(
stacks_client,
block_validate_response,
Expand Down Expand Up @@ -244,7 +244,7 @@ impl SignerTrait<SignerMessage> for Signer {
burn_header_hash,
received_time,
} => {
debug!("{self}: Receved a new burn block event for block height {burn_height}");
info!("{self}: Received a new burn block event for block height {burn_height}");
if let Err(e) =
self.signer_db
.insert_burn_block(burn_header_hash, *burn_height, received_time)
Expand Down Expand Up @@ -703,7 +703,7 @@ impl Signer {
};
self.handle_packets(stacks_client, res, &[packet], current_reward_cycle);
}
debug!(
info!(
"{self}: Received a block validate response";
"block_hash" => block_info.block.header.block_hash(),
"valid" => block_info.valid,
Expand Down Expand Up @@ -1130,7 +1130,7 @@ impl Signer {
match operation_result {
OperationResult::Sign(signature) => {
crate::monitoring::increment_operation_results("sign");
debug!("{self}: Received signature result");
info!("{self}: Received signature result");
self.process_signature(signature);
}
OperationResult::SignTaproot(_) => {
Expand Down

0 comments on commit c394a08

Please sign in to comment.