Skip to content

Commit 0a0c5a4

Browse files
committed
chore: improve signer logging
1 parent 98b7d3d commit 0a0c5a4

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
@@ -445,7 +445,10 @@ impl Signer {
445445
}
446446
};
447447
// Submit a proposal response to the .signers contract for miners
448-
debug!("{self}: Broadcasting a block response to stacks node: {response:?}");
448+
info!(
449+
"{self}: Broadcasting a block response to stacks node: {response:?}";
450+
"signer_sighash" => %block_info.signer_signature_hash(),
451+
);
449452
match self
450453
.stackerdb
451454
.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)