Skip to content

Commit

Permalink
Merge branch 'master' into tweak-benchmark-action
Browse files Browse the repository at this point in the history
  • Loading branch information
v9n authored Aug 3, 2023
2 parents 4dcdead + 34b568e commit 1076011
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oak-node"
version = "1.9.0"
version = "2.0.0"
authors = ["OAK Developement Team"]
description = "Automation-first Blockchain"
license = "GPL-3.0"
Expand Down
11 changes: 8 additions & 3 deletions pallets/automation-time/src/migrations/update_xcmp_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ use crate::{
};
#[cfg(feature = "try-runtime")]
use codec::{Decode, Encode};
use frame_support::{traits::OnRuntimeUpgrade, weights::Weight, Twox64Concat};
use frame_support::{
traits::{Get, OnRuntimeUpgrade},
weights::{RuntimeDbWeight, Weight},
Twox64Concat,
};
use sp_runtime::traits::Convert;
use sp_std::{vec, vec::Vec};
use xcm::latest::prelude::*;
Expand Down Expand Up @@ -72,7 +76,7 @@ impl<T: Config> OnRuntimeUpgrade for UpdateXcmpTask<T> {
fn on_runtime_upgrade() -> Weight {
log::info!(target: "automation-time", "UpdateXcmpTask migration");

let mut migrated_tasks = 0u32;
let mut migrated_tasks = 0u64;

let mut tasks: Vec<(AccountOf<T>, TaskOf<T>)> = vec![];
AccountTasks::<T>::drain().for_each(|(account_id, _task_id, task)| {
Expand All @@ -91,7 +95,8 @@ impl<T: Config> OnRuntimeUpgrade for UpdateXcmpTask<T> {
migrated_tasks
);

<T as Config>::WeightInfo::migration_upgrade_xcmp_task(migrated_tasks)
let db_weight: RuntimeDbWeight = T::DbWeight::get();
db_weight.reads_writes(migrated_tasks + 1, migrated_tasks + 1)
}

#[cfg(feature = "try-runtime")]
Expand Down
4 changes: 2 additions & 2 deletions runtime/neumann/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("neumann"),
impl_name: create_runtime_str!("neumann"),
authoring_version: 1,
spec_version: 294,
impl_version: 1,
spec_version: 295,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
state_version: 0,
Expand Down
6 changes: 3 additions & 3 deletions runtime/oak/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("oak"),
impl_name: create_runtime_str!("oak"),
authoring_version: 1,
spec_version: 294,
impl_version: 1,
spec_version: 295,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
transaction_version: 18,
state_version: 0,
};

Expand Down
6 changes: 3 additions & 3 deletions runtime/turing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("turing"),
impl_name: create_runtime_str!("turing"),
authoring_version: 1,
spec_version: 294,
impl_version: 1,
spec_version: 295,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
transaction_version: 18,
state_version: 0,
};

Expand Down

0 comments on commit 1076011

Please sign in to comment.