frame-system: Add `last_runtime_upgrade_spec_version` (#2351)
Adds a function for querying the last runtime upgrade spec version. This can be useful for when writing runtime level migrations to ensure that they are not executed multiple times. An example would be a session key migration. --------- Co-authored-by:Liam Aharon <liam.aharon@hotmail.com> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- substrate/frame/executive/src/lib.rs 26 additions, 26 deletionssubstrate/frame/executive/src/lib.rs
- substrate/frame/system/Cargo.toml 1 addition, 0 deletionssubstrate/frame/system/Cargo.toml
- substrate/frame/system/src/lib.rs 19 additions, 0 deletionssubstrate/frame/system/src/lib.rs
- substrate/frame/system/src/tests.rs 24 additions, 1 deletionsubstrate/frame/system/src/tests.rs
Please register or sign in to comment