From e34a0fed684504fe8b1620f96cf48a4854c38663 Mon Sep 17 00:00:00 2001 From: jackzhhuang Date: Thu, 23 Nov 2023 18:04:53 +0800 Subject: [PATCH] process error result when adding tips --- sync/src/block_connector/block_connector_service.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sync/src/block_connector/block_connector_service.rs b/sync/src/block_connector/block_connector_service.rs index 9bbb75b101..9fec0fda65 100644 --- a/sync/src/block_connector/block_connector_service.rs +++ b/sync/src/block_connector/block_connector_service.rs @@ -269,7 +269,9 @@ where match self.chain_service.try_connect(new_block.as_ref().clone()) { std::result::Result::Ok(()) => { - self.chain_service.dump_tips(block_header); + if let Err(e) = self.chain_service.dump_tips(block_header) { + error!("Process mined block {} fail, error: {:?}", id, e); + } } Err(e) => { warn!("Process mined block {} fail, error: {:?}", id, e);