mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 21:11:07 +00:00
Disabled validators runtime API (#1257)
Exposes disabled validators list via a runtime API. --------- Co-authored-by: ordian <noreply@reusable.software> Co-authored-by: ordian <write@reusable.software>
This commit is contained in:
committed by
GitHub
parent
f0e6d2ad52
commit
7aace06b3d
@@ -346,6 +346,13 @@ impl RuntimeApiSubsystemClient for BlockChainRpcClient {
|
||||
Ok(self.rpc_client.parachain_host_minimum_backing_votes(at, session_index).await?)
|
||||
}
|
||||
|
||||
async fn disabled_validators(
|
||||
&self,
|
||||
at: Hash,
|
||||
) -> Result<Vec<polkadot_primitives::ValidatorIndex>, ApiError> {
|
||||
Ok(self.rpc_client.parachain_host_disabled_validators(at).await?)
|
||||
}
|
||||
|
||||
async fn async_backing_params(&self, at: Hash) -> Result<AsyncBackingParams, ApiError> {
|
||||
Ok(self.rpc_client.parachain_host_async_backing_params(at).await?)
|
||||
}
|
||||
|
||||
@@ -597,6 +597,14 @@ impl RelayChainRpcClient {
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn parachain_host_disabled_validators(
|
||||
&self,
|
||||
at: RelayHash,
|
||||
) -> Result<Vec<ValidatorIndex>, RelayChainError> {
|
||||
self.call_remote_runtime_function("ParachainHost_disabled_validators", at, None::<()>)
|
||||
.await
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub async fn parachain_host_async_backing_params(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user