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

Signed transactions now have affinity with runtime versions #3430

Merged
merged 2 commits into from
Aug 18, 2019

Conversation

gavofyork
Copy link
Member

@gavofyork gavofyork commented Aug 18, 2019

This basically just ensures that transactions (or rather their signature) are linked to the runtime version for which they were intended. It will mean that signed transactions submitted before a runtime upgrade will need to be resubmitted if they don't get included prior to the runtime upgrade going through.

This is important since a runtime upgrade can alter the meaning of a transaction and we don't want a transaction signed for one purpose doing something else when finally executed.

It could have been done by adding a generic param Get<RuntimeVersion> to the CheckVersion struct, rather than as an associated type of the system::Trait, however I figure having the runtime version available to the system trait will probably be a useful thing to have in the future.

@gavofyork gavofyork added the A0-please_review Pull request needs code review. label Aug 18, 2019
@gavofyork gavofyork requested a review from bkchr August 18, 2019 13:48
@gavofyork gavofyork changed the title Signed transactions now has affinity with runtime versions Signed transactions now have affinity with runtime versions Aug 18, 2019
@gavofyork gavofyork merged commit 747f0a0 into master Aug 18, 2019
@gavofyork gavofyork deleted the gav-tx-ver branch August 18, 2019 16:01
@gavofyork
Copy link
Member Author

CC @jacogr

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants