Prevent syncing to ancient blocks (#1693)

* Don't try to sync to ancient blocks

* Fixed test
This commit is contained in:
Arkadiy Paronyan
2016-07-23 17:27:23 +02:00
committed by Gav Wood
parent 9a8fdeead9
commit 247495fba2
4 changed files with 57 additions and 23 deletions

View File

@@ -106,7 +106,7 @@ impl Informant {
false => t,
};
info!("{} {} {}",
info!(target: "import", "{} {} {}",
match importing {
true => format!("{} {} {} {}+{} Qed",
paint(White.bold(), format!("{:>8}", format!("#{}", chain_info.best_block_number))),