Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime-api: cleanup after v7 stabilization #1729

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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