Skip to content

Commit

Permalink
CRC: remove dead path and update debug message to a warn
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Mar 27, 2024
1 parent da62ad6 commit b9bf740
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions stacks-signer/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ impl Signer {
res: Sender<Vec<OperationResult>>,
current_reward_cycle: u64,
) {
let coordinator_id = self.get_coordinator(current_reward_cycle).0;
let mut block_info = match block_validate_response {
BlockValidateResponse::Ok(block_validate_ok) => {
let signer_signature_hash = block_validate_ok.signer_signature_hash;
Expand Down Expand Up @@ -517,29 +516,6 @@ impl Signer {
sig: vec![],
};
self.handle_packets(stacks_client, res, &[packet], current_reward_cycle);
} else if block_info.valid.unwrap_or(false)
&& !block_info.signed_over
&& coordinator_id == Some(self.signer_id)
{
// We are the coordinator. Trigger a signing round for this block
debug!(
"{self}: attempt to trigger a signing round for block";
"signer_sighash" => %block_info.block.header.signer_signature_hash(),
"block_hash" => %block_info.block.header.block_hash(),
);
self.commands.push_back(Command::Sign {
block: block_info.block.clone(),
is_taproot: false,
merkle_root: None,
});
} else {
debug!(
"{self}: ignoring block.";
"block_hash" => block_info.block.header.block_hash(),
"valid" => block_info.valid,
"signed_over" => block_info.signed_over,
"coordinator_id" => coordinator_id,
);
}
self.signer_db
.insert_block(self.reward_cycle, &block_info)
Expand Down Expand Up @@ -1053,7 +1029,7 @@ impl Signer {
let estimated_fee = stacks_client
.get_medium_estimated_fee_ustx(&unsigned_tx)
.map_err(|e| {
debug!("{self}: unable to estimate fee for DKG vote transaction: {e:?}");
warn!("{self}: unable to estimate fee for DKG vote transaction: {e:?}.");
e
})
.unwrap_or(self.tx_fee_ustx);
Expand Down

0 comments on commit b9bf740

Please sign in to comment.