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

fix benchmarks for g1

parent b793b455
No related branches found
No related tags found
No related merge requests found
...@@ -3008,6 +3008,7 @@ dependencies = [ ...@@ -3008,6 +3008,7 @@ dependencies = [
"pallet-quota", "pallet-quota",
"pallet-scheduler", "pallet-scheduler",
"pallet-session", "pallet-session",
"pallet-session-benchmarking",
"pallet-sudo", "pallet-sudo",
"pallet-timestamp", "pallet-timestamp",
"pallet-transaction-payment", "pallet-transaction-payment",
......
...@@ -16,16 +16,36 @@ targets = ['x86_64-unknown-linux-gnu'] ...@@ -16,16 +16,36 @@ targets = ['x86_64-unknown-linux-gnu']
[features] [features]
default = ['std'] default = ['std']
runtime-benchmarks = [ runtime-benchmarks = [
'frame-benchmarking', 'common-runtime/runtime-benchmarks',
'frame-benchmarking/runtime-benchmarks',
'frame-support/runtime-benchmarks', 'frame-support/runtime-benchmarks',
'frame-system-benchmarking', 'frame-system-benchmarking',
'frame-system/runtime-benchmarks', 'frame-system/runtime-benchmarks',
'hex-literal', 'hex-literal',
'pallet-authority-members/runtime-benchmarks',
'pallet-babe/runtime-benchmarks',
'pallet-balances/runtime-benchmarks', 'pallet-balances/runtime-benchmarks',
'pallet-certification/runtime-benchmarks',
'pallet-collective/runtime-benchmarks',
'pallet-duniter-test-parameters/runtime-benchmarks',
'pallet-duniter-account/runtime-benchmarks',
'pallet-duniter-wot/runtime-benchmarks',
'pallet-grandpa/runtime-benchmarks',
'pallet-identity/runtime-benchmarks', 'pallet-identity/runtime-benchmarks',
'pallet-membership/runtime-benchmarks',
'pallet-provide-randomness/runtime-benchmarks',
'pallet-im-online/runtime-benchmarks',
'pallet-multisig/runtime-benchmarks',
'pallet-oneshot-account/runtime-benchmarks',
'pallet-preimage/runtime-benchmarks',
'pallet-session-benchmarking/runtime-benchmarks',
'pallet-proxy/runtime-benchmarks',
'pallet-scheduler/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
'pallet-treasury/runtime-benchmarks', 'pallet-treasury/runtime-benchmarks',
'pallet-universal-dividend/runtime-benchmarks', 'pallet-universal-dividend/runtime-benchmarks',
'common-runtime/runtime-benchmarks', 'pallet-upgrade-origin/runtime-benchmarks',
'pallet-utility/runtime-benchmarks',
'sp-runtime/runtime-benchmarks', 'sp-runtime/runtime-benchmarks',
] ]
std = [ std = [
...@@ -155,6 +175,7 @@ pallet-preimage = { git = 'https://github.com/duniter/substrate', branch = 'duni ...@@ -155,6 +175,7 @@ pallet-preimage = { git = 'https://github.com/duniter/substrate', branch = 'duni
pallet-proxy = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false } pallet-proxy = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false }
pallet-scheduler = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false } pallet-scheduler = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false }
pallet-session = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false } pallet-session = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false }
pallet-session-benchmarking = { path = '../../pallets/session-benchmarking', default-features = false }
pallet-sudo = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false } pallet-sudo = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false }
pallet-timestamp = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false } pallet-timestamp = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false }
pallet-transaction-payment = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false } pallet-transaction-payment = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42', default-features = false }
......
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
#[cfg(feature = "std")] #[cfg(feature = "std")]
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
#[cfg(feature = "runtime-benchmarks")]
#[macro_use]
extern crate frame_benchmarking;
pub mod parameters; pub mod parameters;
pub use self::parameters::*; pub use self::parameters::*;
......
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