Fixed block proagation after import and import notifications (#119)

* Fixed block proagation after import and import notifications

* Removed cargo check
This commit is contained in:
Arkadiy Paronyan
2018-04-11 19:25:41 +02:00
committed by Gav Wood
parent e81229ae04
commit 9b0ef06cf8
+1 -1
View File
@@ -234,7 +234,7 @@ impl Service {
thread_network.start_network();
let mut core = Core::new().expect("tokio::Core could not be created");
let events = thread_client.import_notification_stream().for_each(|notification| {
thread_network.on_block_imported(&notification.header);
thread_network.on_block_imported(notification.hash, &notification.header);
Ok(())
});
if let Err(e) = core.run(events) {