message: feat: Announce only new block
diff: @@ -88,12 +88,13 @@ impl MinerRpc for MinerRpcImpl {
  .map_err(|err| handle_submit_error(&work_id, &err))?;
  // Verify and insert block
  - let _is_new = self
  + let is_new = self
  .chain
  .process_block(Arc::clone(&block), true)
  .map_err(|err| handle_submit_error(&work_id, &err))?;
  // Announce new block
  + if is_new {
  debug!(
  "[block_relay] announce new block {} {} {}",
  block.header().number(),
  @@ -107,8 +108,10 @@ impl MinerRpc for MinerRpcImpl {
  .network_controller
  .quick_broadcast(NetworkProtocol::RELAY.into(), data)
  {
  - error!("Broadcast block failed: {:?}", err);
  + error!("Broadcast new block failed: {:?}", err);
  }
  + }
  +
  Ok(Some(block.header().hash().unpack()))
  }
  }
  