Skip to content

Commit 8e4cbcd

Browse files
Testnet 10 release preparations (migrations + version bump) (#942)
* migrations * version that compiles fine * ready migrations * Bumped transaction_version, spec_version, runtime crate version, node crate version * Removed wrong merge conflict resolution --------- Co-authored-by: Marcin <[email protected]>
1 parent 33f6c86 commit 8e4cbcd

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aleph-node"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
authors = ["Cardinal Cryptography"]
55
description = "Aleph node binary"
66
edition = "2021"

bin/runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aleph-runtime"
3-
version = "0.9.1"
3+
version = "0.10.0"
44
authors = ["Cardinal Cryptography"]
55
edition = "2021"
66
homepage = "https://alephzero.org"

bin/runtime/src/lib.rs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
110110
spec_name: create_runtime_str!("aleph-node"),
111111
impl_name: create_runtime_str!("aleph-node"),
112112
authoring_version: 1,
113-
spec_version: 56,
113+
spec_version: 57,
114114
impl_version: 1,
115115
apis: RUNTIME_API_VERSIONS,
116-
transaction_version: 14,
116+
transaction_version: 15,
117117
state_version: 0,
118118
};
119119

@@ -778,13 +778,30 @@ pub type UncheckedExtrinsic =
778778
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
779779
/// Extrinsic type that has already been checked.
780780
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
781+
782+
// Migrations
783+
use pallet_balances::migration::MigrateManyToTrackInactive as BalancesV1Migration;
784+
// All migrations for contracts are bundled into one object -- we must import them all.
785+
use pallet_contracts::Migration as ContractsMigrations;
786+
use pallet_scheduler::migration::v3::MigrateToV4 as SchedulerV3V4Migration;
787+
use pallet_staking::migrations::v13::MigrateToV13 as StakingV13Migration;
788+
781789
/// Executive: handles dispatch to the various modules.
782790
pub type Executive = frame_executive::Executive<
783791
Runtime,
784792
Block,
785793
frame_system::ChainContext<Runtime>,
786794
Runtime,
787795
AllPalletsWithSystem,
796+
(
797+
// This will just kill the custom versioning enum, and set StorageVersion to 1
798+
BalancesV1Migration<Runtime, ()>,
799+
// This will trigger the v8 -> v9 migration, it translates all contract codes. Should not be too heavy.
800+
ContractsMigrations<Runtime>,
801+
SchedulerV3V4Migration<Runtime>,
802+
// This only kills the custom versioning enum, and sets StorageVersion to 13
803+
StakingV13Migration<Runtime>,
804+
),
788805
>;
789806

790807
impl_runtime_apis! {

0 commit comments

Comments
 (0)