Update Substrate & Polkadot (#330)

This commit is contained in:
Bastian Köcher
2021-02-16 17:42:08 +01:00
committed by GitHub
parent 4820fa16b1
commit f04ce0655b
4 changed files with 258 additions and 291 deletions
+2 -1
View File
@@ -384,7 +384,7 @@ fn import_block_as_new_best<Block, P>(
impl<T> RelaychainClient for Arc<T>
where
T: sc_client_api::BlockchainEvents<PBlock> + ProvideRuntimeApi<PBlock> + 'static + Send + Sync,
<T as ProvideRuntimeApi<PBlock>>::Api: ParachainHost<PBlock, Error = ClientError>,
<T as ProvideRuntimeApi<PBlock>>::Api: ParachainHost<PBlock>,
{
type Error = ClientError;
@@ -430,6 +430,7 @@ where
self.runtime_api()
.persisted_validation_data(at, para_id, OccupiedCoreAssumption::TimedOut)
.map(|s| s.map(|s| s.parent_head.0))
.map_err(Into::into)
}
}