Skip to content

Commit

Permalink
Add log for MinerRpcImpl::submit_block new_block check
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jan 17, 2024
1 parent 1ea896e commit 13152a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpc/src/module/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,13 @@ impl MinerRpc for MinerRpcImpl {
.chain
.blocking_process_block(Arc::clone(&block))
.map_err(|err| handle_submit_error(&work_id, &err))?;
info!(
"end to submit block, work_id = {}, is_new = {}, block = #{}({})",
work_id,
is_new,
block.number(),
block.hash()
);

// Announce only new block
if is_new {
Expand Down

0 comments on commit 13152a0

Please sign in to comment.