From eebc2b208ecfefb1a845d643ca7ec4e7348e61b2 Mon Sep 17 00:00:00 2001 From: Gary Yu Date: Mon, 24 Dec 2018 11:14:59 +0800 Subject: [PATCH] fix a confusing log on body sync (#2219) --- chain/src/chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/src/chain.rs b/chain/src/chain.rs index 1afd67006..0358dc6a7 100644 --- a/chain/src/chain.rs +++ b/chain/src/chain.rs @@ -767,7 +767,7 @@ impl Chain { if body_head.total_difficulty >= header_head.total_difficulty { debug!( - "{}: no need. header_head.total_difficulty: {} <= body_head.total_difficulty: {}", + "{}: no need txhashset. header_head.total_difficulty: {} <= body_head.total_difficulty: {}", caller, header_head.total_difficulty, body_head.total_difficulty, ); return false; @@ -808,7 +808,7 @@ impl Chain { if oldest_height < header_head.height.saturating_sub(horizon) { if oldest_height > 0 { debug!( - "{}: oldest block which is not on local chain: {} at {}", + "{}: need a state sync for txhashset. oldest block which is not on local chain: {} at {}", caller, oldest_hash, oldest_height, ); return true;