mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
companion for paritytech/polkadot#6161 (#2151)
* Add an RPC call to request `ExecutorParams`
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
use crate::reconnecting_ws_client::ReconnectingWsClient;
|
||||
use cumulus_primitives_core::{
|
||||
relay_chain::{
|
||||
CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState,
|
||||
DisputeState, GroupRotationInfo, Hash as RelayHash, Header as RelayHeader,
|
||||
InboundHrmpMessage, OccupiedCoreAssumption, OldV1SessionInfo, PvfCheckStatement,
|
||||
ScrapedOnChainVotes, SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash,
|
||||
ValidatorId, ValidatorIndex, ValidatorSignature,
|
||||
vstaging::ExecutorParams, CandidateCommitments, CandidateEvent, CandidateHash,
|
||||
CommittedCandidateReceipt, CoreState, DisputeState, GroupRotationInfo, Hash as RelayHash,
|
||||
Header as RelayHeader, InboundHrmpMessage, OccupiedCoreAssumption, OldV1SessionInfo,
|
||||
PvfCheckStatement, ScrapedOnChainVotes, SessionIndex, SessionInfo, ValidationCode,
|
||||
ValidationCodeHash, ValidatorId, ValidatorIndex, ValidatorSignature,
|
||||
},
|
||||
InboundDownwardMessage, ParaId, PersistedValidationData,
|
||||
};
|
||||
@@ -388,6 +388,20 @@ impl RelayChainRpcClient {
|
||||
.await
|
||||
}
|
||||
|
||||
/// Get the executor parameters for the given session, if stored
|
||||
pub async fn parachain_host_session_executor_params(
|
||||
&self,
|
||||
at: RelayHash,
|
||||
session_index: SessionIndex,
|
||||
) -> Result<Option<ExecutorParams>, RelayChainError> {
|
||||
self.call_remote_runtime_function(
|
||||
"ParachainHost_session_executor_params",
|
||||
at,
|
||||
Some(session_index),
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
/// Get header at specified hash
|
||||
pub async fn chain_get_header(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user