Skip to content

Commit

Permalink
runtime-api: cleanup after v7 stabilization (#1729)
Browse files Browse the repository at this point in the history
Follow-up to #1543.
  • Loading branch information
ordian authored Sep 27, 2023
1 parent 14e5d23 commit 769bdd3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion polkadot/node/core/runtime-api/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
Expand Down
4 changes: 2 additions & 2 deletions polkadot/node/core/runtime-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,15 +569,15 @@ where
query!(
ParaBackingState,
para_backing_state(para),
ver = Request::STAGING_BACKING_STATE,
ver = Request::ASYNC_BACKING_STATE_RUNTIME_REQUIREMENT,
sender
)
},
Request::AsyncBackingParams(sender) => {
query!(
AsyncBackingParams,
async_backing_params(),
ver = Request::STAGING_BACKING_STATE,
ver = Request::ASYNC_BACKING_STATE_RUNTIME_REQUIREMENT,
sender
)
},
Expand Down
2 changes: 1 addition & 1 deletion polkadot/node/subsystem-types/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion polkadot/node/subsystem-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 769bdd3

Please sign in to comment.