Skip to content

Commit

Permalink
process error result when adding tips
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Nov 23, 2023
1 parent 9dece14 commit e34a0fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sync/src/block_connector/block_connector_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e34a0fe

Please sign in to comment.