Update Substrate & Polkadot (#330)

This commit is contained in:
Bastian Köcher
2021-02-16 17:42:08 +01:00
committed by GitHub
parent d3f9c7db38
commit 8dac4f75ad
4 changed files with 258 additions and 291 deletions
+255 -285
View File
File diff suppressed because it is too large Load Diff
+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)
}
}
-2
View File
@@ -360,8 +360,6 @@ impl ProvideRuntimeApi<PBlock> for TestApi {
sp_api::mock_impl_runtime_apis! {
impl ParachainHost<PBlock> for RuntimeApi {
type Error = sp_blockchain::Error;
fn validators(&self) -> Vec<ValidatorId> {
self.data.validators.clone()
}
+1 -3
View File
@@ -355,9 +355,7 @@ pub fn node_config(
let base_path = BasePath::new_temp_dir()?;
let root = base_path.path().to_path_buf();
let role = if is_collator {
Role::Authority {
sentry_nodes: Vec::new(),
}
Role::Authority
} else {
Role::Full
};