diff --git a/solo-chains/runtime/dancelight/src/lib.rs b/solo-chains/runtime/dancelight/src/lib.rs index 16b22c516..508e3ffca 100644 --- a/solo-chains/runtime/dancelight/src/lib.rs +++ b/solo-chains/runtime/dancelight/src/lib.rs @@ -2101,6 +2101,7 @@ mod benches { [pallet_external_validators_rewards, ExternalValidatorsRewards] [pallet_external_validator_slashes, ExternalValidatorSlashes] [pallet_invulnerables, TanssiInvulnerables] + [pallet_data_preservers, DataPreservers] // XCM [pallet_xcm, PalletXcmExtrinsicsBenchmark::] [pallet_xcm_benchmarks::fungible, pallet_xcm_benchmarks::fungible::Pallet::] diff --git a/tools/dev-benchmark-pallet.sh b/tools/dev-benchmark-pallet.sh index dbf0bd1d5..8ac5f0393 100755 --- a/tools/dev-benchmark-pallet.sh +++ b/tools/dev-benchmark-pallet.sh @@ -22,7 +22,7 @@ set -e cd "$(dirname "$0")/.." # mkdir just in case as the benchmarking fails if they don't exist -mkdir -p tmp/dancebox_weights tmp/flashbox_weights tmp/simple_template_weights tmp/frontier_template_weights +mkdir -p tmp/dancebox_weights tmp/flashbox_weights tmp/simple_template_weights tmp/frontier_template_weights tmp/dancelight_weights # Empty directories rm -rf tmp/*_weights/* @@ -79,6 +79,15 @@ TEMPLATE_PATH=benchmarking/frame-weight-runtime-template.hbs \ tools/benchmarking.sh "$PALLET" "*" --check cp -v tmp/flashbox_weights/$PALLET.rs runtime/flashbox/src/weights/$PALLET.rs +# Dancelight weights +BINARY=target/release/tanssi-relay \ + TEMPLATE_PATH=benchmarking/frame-weight-runtime-template.hbs \ + CHAIN=dancelight-dev \ + OUTPUT_PATH=tmp/dancelight_weights \ + tools/benchmarking.sh "$PALLET" "*" --check +cp -v tmp/dancelight_weights/$PALLET.rs solo-chains/runtime/dancelight/src/weights/$PALLET.rs + + # Probably don't need to add weights to templates, change false to true if the pallet is also included in the templates if false; then # Simple template weights