runtime-api: cleanup after v7 stabilization (#1729)

Follow-up to #1543.
This commit is contained in:
ordian
2023-09-28 01:07:32 +02:00
committed by GitHub
parent 14e5d23348
commit 769bdd3ff3
4 changed files with 3 additions and 5 deletions
@@ -96,7 +96,6 @@ impl Default for RequestResultCache {
unapplied_slashes: LruMap::new(ByLength::new(DEFAULT_CACHE_CAP)),
key_ownership_proof: LruMap::new(ByLength::new(DEFAULT_CACHE_CAP)),
minimum_backing_votes: LruMap::new(ByLength::new(DEFAULT_CACHE_CAP)),
para_backing_state: LruMap::new(ByLength::new(DEFAULT_CACHE_CAP)),
async_backing_params: LruMap::new(ByLength::new(DEFAULT_CACHE_CAP)),
}
+2 -2
View File
@@ -569,7 +569,7 @@ where
query!(
ParaBackingState,
para_backing_state(para),
ver = Request::STAGING_BACKING_STATE,
ver = Request::ASYNC_BACKING_STATE_RUNTIME_REQUIREMENT,
sender
)
},
@@ -577,7 +577,7 @@ where
query!(
AsyncBackingParams,
async_backing_params(),
ver = Request::STAGING_BACKING_STATE,
ver = Request::ASYNC_BACKING_STATE_RUNTIME_REQUIREMENT,
sender
)
},
@@ -725,7 +725,7 @@ impl RuntimeApiRequest {
pub const MINIMUM_BACKING_VOTES_RUNTIME_REQUIREMENT: u32 = 6;
/// Minimum version to enable asynchronous backing: `AsyncBackingParams` and `ParaBackingState`.
pub const STAGING_BACKING_STATE: u32 = 7;
pub const ASYNC_BACKING_STATE_RUNTIME_REQUIREMENT: u32 = 7;
}
/// A message to the Runtime API subsystem.
-1
View File
@@ -226,7 +226,6 @@ specialize_requests! {
fn request_unapplied_slashes() -> Vec<(SessionIndex, CandidateHash, slashing::PendingSlashes)>; UnappliedSlashes;
fn request_key_ownership_proof(validator_id: ValidatorId) -> Option<slashing::OpaqueKeyOwnershipProof>; KeyOwnershipProof;
fn request_submit_report_dispute_lost(dp: slashing::DisputeProof, okop: slashing::OpaqueKeyOwnershipProof) -> Option<()>; SubmitReportDisputeLost;
fn request_async_backing_params() -> AsyncBackingParams; AsyncBackingParams;
}