Skip to content

Commit 5a3825d

Browse files
authored
Merge pull request #5025 from stacks-network/chore/signer-logging
chore: improve signer logging
2 parents 608ad7a + 2579dca commit 5a3825d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,10 @@ impl Signer {
454454
}
455455
};
456456
// Submit a proposal response to the .signers contract for miners
457-
debug!("{self}: Broadcasting a block response to stacks node: {response:?}");
457+
info!(
458+
"{self}: Broadcasting a block response to stacks node: {response:?}";
459+
"signer_sighash" => %block_info.signer_signature_hash(),
460+
);
458461
match self
459462
.stackerdb
460463
.send_message_with_retry::<SignerMessage>(response.clone().into())

stackslib/src/net/api/postblock_proposal.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,15 @@ impl RPCRequestHandler for RPCBlockProposalRequestHandler {
512512
.take()
513513
.ok_or(NetError::SendError("`block_proposal` not set".into()))?;
514514

515+
info!(
516+
"Received block proposal request";
517+
"signer_sighash" => %block_proposal.block.header.signer_signature_hash(),
518+
"block_header_hash" => %block_proposal.block.header.block_hash(),
519+
"height" => block_proposal.block.header.chain_length,
520+
"tx_count" => block_proposal.block.txs.len(),
521+
"parent_stacks_block_id" => %block_proposal.block.header.parent_block_id,
522+
);
523+
515524
let res = node.with_node_state(|network, sortdb, chainstate, _mempool, rpc_args| {
516525
if network.is_proposal_thread_running() {
517526
return Err((

0 commit comments

Comments
 (0)