Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e91b5df
Use the automated call decode weight for benchmark
kianenigma Sep 13, 2021
d9ffcd5
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 13, 2021
d041fe8
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 13, 2021
d32a30a
Master.into()
kianenigma Sep 16, 2021
2ac99ba
Merge branch 'kiz-fix-decode-weight-election' of github.com:paritytec…
kianenigma Sep 16, 2021
d555b46
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 17, 2021
0aaf4bb
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 17, 2021
e7507ce
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 20, 2021
8b44cb3
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 20, 2021
af312e4
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
0acb048
reduce the boundaries
kianenigma Sep 21, 2021
bce1de6
Fix
kianenigma Sep 21, 2021
cf3edf7
Fox
kianenigma Sep 21, 2021
df9f0ea
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
bd1011f
reduce the numbers even less
kianenigma Sep 21, 2021
19dd065
Merged
kianenigma Sep 21, 2021
62af610
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 21, 2021
0e444a5
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
602d8b8
Fix a few things
kianenigma Sep 21, 2021
836fe89
Merge branch 'kiz-fix-decode-weight-election' of github.com:paritytec…
kianenigma Sep 21, 2021
fd63969
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 21, 2021
d9b8e23
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
8d8f6c3
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 22, 2021
33a94d7
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 22, 2021
407cbc1
update comment
kianenigma Sep 22, 2021
be355e3
Merge branch 'kiz-fix-decode-weight-election' of github.com:paritytec…
kianenigma Sep 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions frame/election-provider-multi-phase/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,21 +351,8 @@ frame_benchmarking::benchmarks! {
assert!(<MultiPhase<T>>::queued_solution().is_none());
<CurrentPhase<T>>::put(Phase::Unsigned((true, 1u32.into())));

// encode the most significant storage item that needs to be decoded in the dispatch.
let encoded_snapshot = <MultiPhase<T>>::snapshot().ok_or("missing snapshot")?.encode();
let encoded_call = <Call<T>>::submit_unsigned(Box::new(raw_solution.clone()), witness).encode();
}: {
assert_ok!(
<MultiPhase<T>>::submit_unsigned(
RawOrigin::None.into(),
Box::new(raw_solution),
witness,
)
);
let _decoded_snap = <RoundSnapshot<T::AccountId> as Decode>::decode(&mut &*encoded_snapshot)
.expect("decoding should not fail; qed.");
let _decoded_call = <Call<T> as Decode>::decode(&mut &*encoded_call).expect("decoding should not fail; qed.");
} verify {
}: _(RawOrigin::None, Box::new(raw_solution), witness)
verify {
assert!(<MultiPhase<T>>::queued_solution().is_some());
}

Expand Down