Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
6301515b
Commit
6301515b
authored
Aug 25, 2020
by
Cecile Tonglet
Browse files
Merge commit
01ffc66b
(no conflict)
Parent branch: origin/master Forked at:
bf7ccb84
parents
7f573736
01ffc66b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
6301515b
This diff is collapsed.
Click to expand it.
Cargo.toml
View file @
6301515b
...
...
@@ -4,7 +4,7 @@ path = "src/main.rs"
[package]
name
=
"polkadot"
version
=
"0.8.
19
"
version
=
"0.8.
22
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
runtime/kusama/src/lib.rs
View file @
6301515b
...
...
@@ -1203,13 +1203,7 @@ sp_api::impl_runtime_apis! {
#[cfg(feature
=
"runtime-benchmarks"
)]
impl
frame_benchmarking
::
Benchmark
<
Block
>
for
Runtime
{
fn
dispatch_benchmark
(
pallet
:
Vec
<
u8
>
,
benchmark
:
Vec
<
u8
>
,
lowest_range_values
:
Vec
<
u32
>
,
highest_range_values
:
Vec
<
u32
>
,
steps
:
Vec
<
u32
>
,
repeat
:
u32
,
extra
:
bool
,
config
:
frame_benchmarking
::
BenchmarkConfig
)
->
Result
<
Vec
<
frame_benchmarking
::
BenchmarkBatch
>
,
RuntimeString
>
{
use
frame_benchmarking
::{
Benchmarking
,
BenchmarkBatch
,
add_benchmark
,
TrackedStorageKey
};
// Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues.
...
...
@@ -1239,16 +1233,7 @@ sp_api::impl_runtime_apis! {
];
let
mut
batches
=
Vec
::
<
BenchmarkBatch
>
::
new
();
let
params
=
(
&
pallet
,
&
benchmark
,
&
lowest_range_values
,
&
highest_range_values
,
&
steps
,
repeat
,
&
whitelist
,
extra
,
);
let
params
=
(
&
config
,
&
whitelist
);
// Polkadot
add_benchmark!
(
params
,
batches
,
claims
,
Claims
);
// Substrate
...
...
runtime/polkadot/src/lib.rs
View file @
6301515b
...
...
@@ -1344,13 +1344,7 @@ sp_api::impl_runtime_apis! {
#[cfg(feature
=
"runtime-benchmarks"
)]
impl
frame_benchmarking
::
Benchmark
<
Block
>
for
Runtime
{
fn
dispatch_benchmark
(
pallet
:
Vec
<
u8
>
,
benchmark
:
Vec
<
u8
>
,
lowest_range_values
:
Vec
<
u32
>
,
highest_range_values
:
Vec
<
u32
>
,
steps
:
Vec
<
u32
>
,
repeat
:
u32
,
extra
:
bool
,
config
:
frame_benchmarking
::
BenchmarkConfig
)
->
Result
<
Vec
<
frame_benchmarking
::
BenchmarkBatch
>
,
RuntimeString
>
{
use
frame_benchmarking
::{
Benchmarking
,
BenchmarkBatch
,
add_benchmark
,
TrackedStorageKey
};
// Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues.
...
...
@@ -1380,16 +1374,7 @@ sp_api::impl_runtime_apis! {
];
let
mut
batches
=
Vec
::
<
BenchmarkBatch
>
::
new
();
let
params
=
(
&
pallet
,
&
benchmark
,
&
lowest_range_values
,
&
highest_range_values
,
&
steps
,
repeat
,
&
whitelist
,
extra
,
);
let
params
=
(
&
config
,
&
whitelist
);
// Polkadot
add_benchmark!
(
params
,
batches
,
claims
,
Claims
);
// Substrate
...
...
runtime/westend/src/lib.rs
View file @
6301515b
...
...
@@ -1000,13 +1000,7 @@ sp_api::impl_runtime_apis! {
#[cfg(feature
=
"runtime-benchmarks"
)]
impl
frame_benchmarking
::
Benchmark
<
Block
>
for
Runtime
{
fn
dispatch_benchmark
(
pallet
:
Vec
<
u8
>
,
benchmark
:
Vec
<
u8
>
,
lowest_range_values
:
Vec
<
u32
>
,
highest_range_values
:
Vec
<
u32
>
,
steps
:
Vec
<
u32
>
,
repeat
:
u32
,
extra
:
bool
,
config
:
frame_benchmarking
::
BenchmarkConfig
,
)
->
Result
<
Vec
<
frame_benchmarking
::
BenchmarkBatch
>
,
RuntimeString
>
{
use
frame_benchmarking
::{
Benchmarking
,
BenchmarkBatch
,
add_benchmark
,
TrackedStorageKey
};
// Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues.
...
...
@@ -1036,16 +1030,7 @@ sp_api::impl_runtime_apis! {
];
let
mut
batches
=
Vec
::
<
BenchmarkBatch
>
::
new
();
let
params
=
(
&
pallet
,
&
benchmark
,
&
lowest_range_values
,
&
highest_range_values
,
&
steps
,
repeat
,
&
whitelist
,
extra
,
);
let
params
=
(
&
config
,
&
whitelist
);
add_benchmark!
(
params
,
batches
,
pallet_balances
,
Balances
);
add_benchmark!
(
params
,
batches
,
pallet_identity
,
Identity
);
...
...
gabriel klawitter
🏄
@gabriel
mentioned in commit
3ec49b4b
·
Sep 02, 2020
mentioned in commit
3ec49b4b
mentioned in commit 3ec49b4b5ab9e6547a09207d1652a076e7517fcd
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment