Skip to content

Commit

Permalink
Make offences benchmark runnable (paritytech#10782)
Browse files Browse the repository at this point in the history
* Make offences benchmark runnable

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_offences --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/offences/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Revert bench-bot

This reverts commit 73d0cb2.

Co-authored-by: Parity Bot <admin@parity.io>
  • Loading branch information
2 people authored and ark0f committed Feb 27, 2023
1 parent fb6954e commit 0e983c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frame/offences/benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ benchmarks! {
}
verify {
// make sure that all slashes have been applied
#[cfg(test)]
assert_eq!(
System::<T>::event_count(), 0
+ 1 // offence
Expand Down Expand Up @@ -440,6 +441,7 @@ benchmarks! {
}
verify {
// make sure that all slashes have been applied
#[cfg(test)]
assert_eq!(
System::<T>::event_count(), 0
+ 1 // offence
Expand Down

0 comments on commit 0e983c6

Please sign in to comment.