Skip to content
Snippets Groups Projects
Unverified Commit 5a738bd2 authored by bgallois's avatar bgallois
Browse files

upgrade to polkadot-v1.9.0

parent 514c2fe0
No related branches found
No related tags found
No related merge requests found
Pipeline #36593 failed
Showing
with 1512 additions and 1219 deletions
This diff is collapsed.
This diff is collapsed.
......@@ -329,11 +329,13 @@ pub fn run() -> sc_cli::Result<()> {
BenchmarkCmd::Pallet(cmd) => {
if cfg!(feature = "runtime-benchmarks") {
runner.sync_run(|config| {
cmd.run::<service::runtime_executor::runtime::Block, ExtendedHostFunctions<
sp_io::SubstrateHostFunctions,
<Executor as NativeExecutionDispatch>::ExtendHostFunctions,
>>(config)
})
cmd.run::<sp_runtime::traits::HashingFor<
service::runtime_executor::runtime::Block,
>, ExtendedHostFunctions<
sp_io::SubstrateHostFunctions,
<Executor as NativeExecutionDispatch>::ExtendHostFunctions,
>>(config)
})
} else {
Err("Benchmarking wasn't enabled when building the node. \
You can enable it with `--features runtime-benchmarks`."
......
......@@ -57,6 +57,7 @@ std = [
"frame-system/std",
"frame-try-runtime/std",
"pallet-authority-members/std",
"pallet-atomic-swap/std",
"pallet-babe/std",
"pallet-balances/std",
"pallet-certification/std",
......@@ -101,6 +102,7 @@ try-runtime = [
"frame-system/try-runtime",
"frame-try-runtime/try-runtime",
"pallet-authority-members/try-runtime",
"pallet-atomic-swap/try-runtime",
"pallet-babe/try-runtime",
"pallet-balances/try-runtime",
"pallet-certification/try-runtime",
......@@ -141,6 +143,7 @@ frame-system = { workspace = true }
frame-system-benchmarking = { workspace = true, optional = true }
frame-try-runtime = { workspace = true, optional = true }
pallet-authority-members = { workspace = true }
pallet-atomic-swap = { workspace = true }
pallet-babe = { workspace = true }
pallet-balances = { workspace = true }
pallet-certification = { workspace = true }
......
......@@ -89,7 +89,7 @@ macro_rules! runtime_apis {
Executive::execute_block(block)
}
fn initialize_block(header: &<Block as BlockT>::Header) {
fn initialize_block(header: &<Block as BlockT>::Header) -> sp_runtime::ExtrinsicInclusionMode {
Executive::initialize_block(header)
}
}
......
......@@ -69,11 +69,16 @@ macro_rules! pallets_config {
/// The set code logic, just the default since we're not a parachain.
type OnSetCode = ();
type MaxConsumers = frame_support::traits::ConstU32<16>;
/// The type for storing how many extrinsics an account has signed.
type Nonce = node_primitives::Nonce;
/// The block type for the runtime.
type Block = Block;
type RuntimeTask = ();
/// The type for storing how many extrinsics an account has signed.
type Nonce = node_primitives::Nonce;
/// The block type for the runtime.
type Block = Block;
type RuntimeTask = ();
type SingleBlockMigrations = ();
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
type PostTransactions = ();
}
// SCHEDULER //
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -17,7 +17,7 @@
//! Autogenerated weights for `pallet_duniter_account`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
......@@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3558`
// Minimum execution time: 3_293_000 picoseconds.
Weight::from_parts(3_598_000, 0)
// Minimum execution time: 3_090_000 picoseconds.
Weight::from_parts(3_296_000, 0)
.saturating_add(Weight::from_parts(0, 3558))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment