mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Update Substrate & Polkadot (#330)
This commit is contained in:
Generated
+255
-285
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user