Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
parity: omit redundant last imported block number in light sync infor…
Browse files Browse the repository at this point in the history
…mant (#8962)
  • Loading branch information
5chdn authored and niklasad1 committed Jun 26, 2018
1 parent 1a16f33 commit 683a26c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion parity/informant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ impl<T: InformantData> Informant<T> {
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(),
Expand Down

0 comments on commit 683a26c

Please sign in to comment.