mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
Run paras inherent benchmarks (#4454)
* Some new lines * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras_inherent.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras_inherent.rs Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
@@ -45,10 +45,12 @@ benchmarks! {
|
||||
verify {
|
||||
// Assert that the block was not discarded
|
||||
assert!(Included::<T>::get().is_some());
|
||||
|
||||
// Assert that there are on-chain votes that got scraped
|
||||
let onchain_votes = OnChainVotes::<T>::get();
|
||||
assert!(onchain_votes.is_some());
|
||||
let vote = onchain_votes.unwrap();
|
||||
|
||||
// Ensure that the votes are for the correct session
|
||||
assert_eq!(vote.session, scenario._session);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user