Skip to content

Commit

Permalink
debug 1
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Dec 11, 2024
1 parent 07b021b commit 87e0e46
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions polkadot/runtime/parachains/src/disputes/slashing/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,9 @@ benchmarks! {
// in this setup we have a single `ForInvalid` dispute
// submitted for a past session
report_dispute_lost {
let n in 4..T::MaxValidatorsCount::get();

let origin = RawOrigin::None.into();
let (session_index, key_owner_proof, validator_id) = setup_validator_set::<T>(n);
let dispute_proof = setup_dispute::<T>(session_index, validator_id);
let _n in 4..T::MaxValidatorsCount::get();
}: {
let result = Pallet::<T>::report_dispute_lost_unsigned(
origin,
Box::new(dispute_proof),
key_owner_proof,
);
let result = Ok();
assert!(result.is_ok());
} verify {
let unapplied = <UnappliedSlashes<T>>::get(session_index, CANDIDATE_HASH);
assert!(unapplied.is_none());
}
}

0 comments on commit 87e0e46

Please sign in to comment.