Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@montekki
Copy link
Contributor

@montekki montekki commented Mar 4, 2020

Adds a session getter for session::historical::Proof. It is needed for offence handlers such as paritytech/polkadot#840 to determine the exact session of the commited equivocation and create the corresponding Offence struct.

@montekki montekki added the A0-please_review Pull request needs code review. label Mar 4, 2020
@montekki montekki requested a review from rphmeier March 4, 2020 09:14
@rphmeier rphmeier added A7-looksgoodtestsfail and removed A0-please_review Pull request needs code review. labels Mar 4, 2020
@rphmeier
Copy link
Contributor

rphmeier commented Mar 4, 2020

cc @gnunicorn this is technically a breaking change, should we wait to merge? Something that's definitely needed for slashing.

@gnunicorn
Copy link
Contributor

we are still in alpha-release-phase, we are accepting not-too-involved breaking changes.

@rphmeier rphmeier added this to the 2.0 milestone Mar 4, 2020
@montekki
Copy link
Contributor Author

montekki commented Mar 5, 2020

Also added some trait derives that are necessary for using the Proof type inside runtime.

@gnunicorn
Copy link
Contributor

failing test, merge conflict.

@montekki
Copy link
Contributor Author

montekki commented Mar 5, 2020

@gnunicorn can we now get this in?

@gavofyork gavofyork merged commit f74589e into paritytech:master Mar 5, 2020
General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Mar 6, 2020
* Adds a session getter to historical proofs

* Bump spec_version

* Adds some useful trait derives to Proof
General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Mar 17, 2020
* Adds a session getter to historical proofs

* Bump spec_version

* Adds some useful trait derives to Proof
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants