mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Update to latest Substrate (7688cbc) (#329)
* Initial fixes * Clean up Timestamp * Patch futures * Typo * Fix compilation of tests * Fix parachains tests * Update runtime/src/parachains.rs Co-Authored-By: thiolliere <gui.thiolliere@gmail.com> * Update runtime/src/parachains.rs Co-Authored-By: Gavin Wood <github@gavwood.com>
This commit is contained in:
committed by
Gavin Wood
parent
1ded51d77b
commit
2c66adfb0a
@@ -31,6 +31,7 @@ use client::blockchain::HeaderBackend;
|
||||
use consensus::SelectChain;
|
||||
use extrinsic_store::Store as ExtrinsicStore;
|
||||
use futures::prelude::*;
|
||||
use futures03::{TryStreamExt as _, StreamExt as _};
|
||||
use log::error;
|
||||
use primitives::ed25519;
|
||||
use polkadot_primitives::{Block, BlockId, AuraId};
|
||||
@@ -73,6 +74,7 @@ fn prune_unneeded_availability<P>(client: Arc<P>, extrinsic_store: ExtrinsicStor
|
||||
where P: Send + Sync + BlockchainEvents<Block> + BlockBody<Block> + 'static
|
||||
{
|
||||
client.finality_notification_stream()
|
||||
.map(|v| Ok::<_, ()>(v)).compat()
|
||||
.for_each(move |notification| {
|
||||
let hash = notification.hash;
|
||||
let parent_hash = notification.header.parent_hash;
|
||||
@@ -135,6 +137,7 @@ pub(crate) fn start<C, N, P, SC>(
|
||||
let key = key.clone();
|
||||
|
||||
client.import_notification_stream()
|
||||
.map(|v| Ok::<_, ()>(v)).compat()
|
||||
.for_each(move |notification| {
|
||||
let parent_hash = notification.hash;
|
||||
if notification.is_new_best {
|
||||
|
||||
Reference in New Issue
Block a user