Parachains double vote handler initial implementation. (#840)
* Parachains double vote handler initial implementation. * Make tests test the actual slashing. * Implement SignedExtension validation of double vote reports. * Fixes build after merge * Review fixes * Adds historical session proofs * Review fixes. * Bump runtime spec_version * Get the session number from the proof * Check that proof matches session * Change signature type on DoubleVoteReport * Adds docs and removes blank lines * Removes leftover code * Fix build * Fix build after a merge * Apply suggestions from code review Co-Authored-By:Robert Habermeier <rphmeier@gmail.com> * Prune ParentToSessionIndex * Remove a clone and a warning Co-authored-by:
Robert Habermeier <rphmeier@gmail.com> Co-authored-by:
Gavin Wood <gavin@parity.io>
Showing
- polkadot/Cargo.lock 2 additions, 0 deletionspolkadot/Cargo.lock
- polkadot/primitives/src/parachain.rs 2 additions, 3 deletionspolkadot/primitives/src/parachain.rs
- polkadot/runtime/common/Cargo.toml 1 addition, 0 deletionspolkadot/runtime/common/Cargo.toml
- polkadot/runtime/common/src/parachains.rs 1023 additions, 22 deletionspolkadot/runtime/common/src/parachains.rs
- polkadot/runtime/common/src/registrar.rs 53 additions, 3 deletionspolkadot/runtime/common/src/registrar.rs
- polkadot/runtime/kusama/src/lib.rs 10 additions, 3 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/polkadot/src/lib.rs 10 additions, 3 deletionspolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/test-runtime/Cargo.toml 2 additions, 0 deletionspolkadot/runtime/test-runtime/Cargo.toml
- polkadot/runtime/test-runtime/src/lib.rs 18 additions, 2 deletionspolkadot/runtime/test-runtime/src/lib.rs
Please register or sign in to comment