mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 14:17:56 +00:00
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:
committed by
Gav Wood
parent
e81229ae04
commit
9b0ef06cf8
@@ -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(¬ification.header);
|
||||
thread_network.on_block_imported(notification.hash, ¬ification.header);
|
||||
Ok(())
|
||||
});
|
||||
if let Err(e) = core.run(events) {
|
||||
|
||||
Reference in New Issue
Block a user