This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Move vstaging to production #7341
Merged
paritytech-processbot
merged 2 commits into
master
from
rk-enable-past-session-slashing-production
Jun 12, 2023
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,7 +123,7 @@ use sp_std::{collections::btree_map::BTreeMap, prelude::*}; | |
|
|
||
| sp_api::decl_runtime_apis! { | ||
| /// The API for querying the state of parachains on-chain. | ||
| #[api_version(4)] | ||
| #[api_version(5)] | ||
| pub trait ParachainHost<H: Encode + Decode = pcp::v2::Hash, N: Encode + Decode = pcp::v2::BlockNumber> { | ||
| /// Get the current validators. | ||
| fn validators() -> Vec<ValidatorId>; | ||
|
|
@@ -220,18 +220,18 @@ sp_api::decl_runtime_apis! { | |
| fn session_executor_params(session_index: SessionIndex) -> Option<ExecutorParams>; | ||
|
|
||
| /// Returns a list of validators that lost a past session dispute and need to be slashed. | ||
| #[api_version(5)] | ||
| /// NOTE: This function is only available since parachain host version 5. | ||
| fn unapplied_slashes() -> Vec<(SessionIndex, CandidateHash, vstaging::slashing::PendingSlashes)>; | ||
|
|
||
| /// Returns a merkle proof of a validator session key. | ||
| #[api_version(5)] | ||
| /// NOTE: This function is only available since parachain host version 5. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not ideal loosing version information when bumping base but it is what it is :( |
||
| fn key_ownership_proof( | ||
| validator_id: ValidatorId, | ||
| ) -> Option<vstaging::slashing::OpaqueKeyOwnershipProof>; | ||
|
|
||
| /// Submit an unsigned extrinsic to slash validators who lost a dispute about | ||
| /// a candidate of a past session. | ||
| #[api_version(5)] | ||
| /// NOTE: This function is only available since parachain host version 5. | ||
| fn submit_report_dispute_lost( | ||
| dispute_proof: vstaging::slashing::DisputeProof, | ||
| key_ownership_proof: vstaging::slashing::OpaqueKeyOwnershipProof, | ||
|
|
||
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.