fix a confusing log on body sync (#2219)
This commit is contained in:
+2
-2
@@ -767,7 +767,7 @@ impl Chain {
|
|||||||
|
|
||||||
if body_head.total_difficulty >= header_head.total_difficulty {
|
if body_head.total_difficulty >= header_head.total_difficulty {
|
||||||
debug!(
|
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,
|
caller, header_head.total_difficulty, body_head.total_difficulty,
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
@@ -808,7 +808,7 @@ impl Chain {
|
|||||||
if oldest_height < header_head.height.saturating_sub(horizon) {
|
if oldest_height < header_head.height.saturating_sub(horizon) {
|
||||||
if oldest_height > 0 {
|
if oldest_height > 0 {
|
||||||
debug!(
|
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,
|
caller, oldest_hash, oldest_height,
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user