fix a confusing log on body sync (#2219)

This commit is contained in:
Gary Yu 2018-12-24 11:14:59 +08:00 committed by GitHub
parent 2a8456a9db
commit eebc2b208e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;