mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
fix sibmit benchmark in election-multi-phase pallet (#11057)
This commit is contained in:
@@ -309,7 +309,6 @@ frame_benchmarking::benchmarks! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
submit {
|
submit {
|
||||||
|
|
||||||
// the solution will be worse than all of them meaning the score need to be checked against
|
// the solution will be worse than all of them meaning the score need to be checked against
|
||||||
// ~ log2(c)
|
// ~ log2(c)
|
||||||
let solution = RawSolution {
|
let solution = RawSolution {
|
||||||
@@ -341,7 +340,11 @@ frame_benchmarking::benchmarks! {
|
|||||||
signed_submissions.put();
|
signed_submissions.put();
|
||||||
|
|
||||||
let caller = frame_benchmarking::whitelisted_caller();
|
let caller = frame_benchmarking::whitelisted_caller();
|
||||||
T::Currency::make_free_balance_be(&caller, T::Currency::minimum_balance() * 10u32.into());
|
let deposit = MultiPhase::<T>::deposit_for(
|
||||||
|
&solution,
|
||||||
|
MultiPhase::<T>::snapshot_metadata().unwrap_or_default(),
|
||||||
|
);
|
||||||
|
T::Currency::make_free_balance_be(&caller, T::Currency::minimum_balance() * 1000u32.into() + deposit);
|
||||||
|
|
||||||
}: _(RawOrigin::Signed(caller), Box::new(solution))
|
}: _(RawOrigin::Signed(caller), Box::new(solution))
|
||||||
verify {
|
verify {
|
||||||
|
|||||||
Reference in New Issue
Block a user