More timely block import notifications (#306)

* More timely block import notifications

* Grumbles.

* More wrapping

* Fix build

* Fixes
This commit is contained in:
Gav Wood authored and GitHub committed 2018-07-13 12:13:03 +02:00
1 parent 37a4b30d08
commit 58c84d49da
7 files changed
+22 -5

No files matched your search

-1
View File
@@ -63,7 +63,6 @@ pub fn start<C>(service: &Service<C>, exit: ::exit_future::Exit, handle: TaskExe
let client = service.client();
let display_block_import = client.import_notification_stream().for_each(|n| {
info!(target: "polkadot", "Imported #{} ({})", n.header.number, n.hash);
telemetry!("block.import"; "height" => n.header.number, "best" => ?n.hash);
Ok(())
});