Skip to content

Commit df6eae3

Browse files
committed
chore: add signer logs
1 parent c37babd commit df6eae3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

stacks-signer/src/chainstate.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,18 @@ impl SortitionsView {
193193
.cur_sortition
194194
.is_timed_out(self.config.block_proposal_timeout, signer_db)?
195195
{
196+
info!(
197+
"Current miner timed out, marking as invalid.";
198+
"current_sortition_consensus_hash" => ?self.cur_sortition.consensus_hash,
199+
);
196200
self.cur_sortition.miner_status = SortitionMinerStatus::InvalidatedBeforeFirstBlock;
197201
}
198202
if let Some(last_sortition) = self.last_sortition.as_mut() {
199203
if last_sortition.is_timed_out(self.config.block_proposal_timeout, signer_db)? {
204+
info!(
205+
"Last miner timed out, marking as invalid.";
206+
"last_sortition_consensus_hash" => ?last_sortition.consensus_hash,
207+
);
200208
last_sortition.miner_status = SortitionMinerStatus::InvalidatedBeforeFirstBlock;
201209
}
202210
}

stacks-signer/src/v0/signer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ impl Signer {
353353
"{self}: received a block proposal for a new block. Submit block for validation. ";
354354
"signer_sighash" => %signer_signature_hash,
355355
"block_id" => %block_proposal.block.block_id(),
356+
"burn_height" => block_proposal.burn_height,
356357
);
357358
crate::monitoring::increment_block_proposals_received();
358359
let mut block_info = BlockInfo::from(block_proposal.clone());

0 commit comments

Comments
 (0)