Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
257c9a2
Parachains double vote handler initial implementation.
montekki Jan 29, 2020
a0ea78f
Make tests test the actual slashing.
montekki Feb 16, 2020
ed78c75
Implement SignedExtension validation of double vote reports.
montekki Feb 20, 2020
b02b7d2
Merge branch 'master' into fs-double-vote-slash-handler
montekki Feb 20, 2020
8f1c879
Fixes build after merge
montekki Feb 20, 2020
e8c70b9
Merge branch 'master' into fs-double-vote-slash-handler
montekki Feb 26, 2020
72e8a24
Merge branch 'master' into fs-double-vote-slash-handler
montekki Feb 28, 2020
55ce722
Review fixes
montekki Feb 28, 2020
9b06b3a
Adds historical session proofs
montekki Mar 4, 2020
a91ce09
Review fixes.
montekki Mar 6, 2020
b201912
Merge branch 'master' into fs-double-vote-slash-handler
montekki Mar 10, 2020
3a7124e
Bump runtime spec_version
montekki Mar 10, 2020
1b731e7
Get the session number from the proof
montekki Mar 11, 2020
e91453e
Check that proof matches session
montekki Mar 12, 2020
4861836
Change signature type on DoubleVoteReport
montekki Mar 12, 2020
456a94a
Adds docs and removes blank lines
montekki Mar 12, 2020
f60b058
Removes leftover code
montekki Mar 12, 2020
1f866cb
Merge branch 'master' into fs-double-vote-slash-handler
montekki Mar 15, 2020
c12d17a
Fix build
montekki Mar 15, 2020
d144ec0
Merge branch 'master' into fs-double-vote-slash-handler
montekki Mar 17, 2020
de45a66
Fix build after a merge
montekki Mar 17, 2020
71b858d
Apply suggestions from code review
montekki Mar 18, 2020
212e94c
Prune ParentToSessionIndex
montekki Mar 21, 2020
47f2763
Merge branch 'master' into fs-double-vote-slash-handler
gavofyork Mar 21, 2020
0f2183d
Remove a clone and a warning
montekki Mar 21, 2020
a98afd7
Merge branch 'master' into fs-double-vote-slash-handler
montekki Mar 22, 2020
4be887d
Merge branch 'master' into fs-double-vote-slash-handler
montekki Mar 22, 2020
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions primitives/src/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ pub struct Activity(#[cfg_attr(feature = "std", serde(with="bytes"))] pub Vec<u8

/// Statements that can be made about parachain candidates. These are the
/// actual values that are signed.
#[derive(Clone, PartialEq, Eq, Encode)]
#[derive(Clone, PartialEq, Eq, Encode, Decode)]
#[cfg_attr(feature = "std", derive(Debug))]
pub enum Statement {
/// Proposal of a parachain candidate.
Expand All @@ -596,8 +596,7 @@ pub enum Statement {

/// An either implicit or explicit attestation to the validity of a parachain
/// candidate.
#[derive(Clone, PartialEq, Decode, Encode)]
#[cfg_attr(feature = "std", derive(Debug))]
#[derive(Clone, Eq, PartialEq, Decode, Encode, RuntimeDebug)]
pub enum ValidityAttestation {
/// Implicit validity attestation by issuing.
/// This corresponds to issuance of a `Candidate` statement.
Expand Down
1 change: 1 addition & 0 deletions runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ staking = { package = "pallet-staking", git = "https://github.com/paritytech/sub
system = { package = "frame-system", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
offences = { package = "pallet-offences", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }

primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
Expand Down
Loading