From 683a26c8300c7022950bb2d678b82a616b79d434 Mon Sep 17 00:00:00 2001 From: Afri Schoedon <5chdn@users.noreply.github.com> Date: Tue, 26 Jun 2018 11:31:22 +0200 Subject: [PATCH] parity: omit redundant last imported block number in light sync informant (#8962) --- parity/informant.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parity/informant.rs b/parity/informant.rs index 1840be3badd..6f1227592f7 100644 --- a/parity/informant.rs +++ b/parity/informant.rs @@ -335,7 +335,13 @@ impl Informant { match sync_info.as_ref() { Some(ref sync_info) => format!("{}{}/{} peers", match importing { - true => format!("{} ", paint(Green.bold(), format!("{:>8}", format!("#{}", sync_info.last_imported_block_number)))), + true => format!("{}", + if self.target.executes_transactions() { + paint(Green.bold(), format!("{:>8} ", format!("#{}", sync_info.last_imported_block_number))) + } else { + String::new() + } + ), false => match sync_info.last_imported_old_block_number { Some(number) => format!("{} ", paint(Yellow.bold(), format!("{:>8}", format!("#{}", number)))), None => String::new(),