Skip to content

Commit

Permalink
use headers on templates (paritytech#12546)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi authored and ark0f committed Feb 27, 2023
1 parent c590d3d commit f19ff2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
18 changes: 1 addition & 17 deletions .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
// This file is part of Substrate.

// Copyright (C) 2022 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

{{header}}
//! Autogenerated weights for {{pallet}}
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
Expand Down
2 changes: 2 additions & 0 deletions scripts/run_all_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ for PALLET in "${PALLETS[@]}"; do
--wasm-execution=compiled \
--heap-pages=4096 \
--output="$WEIGHT_FILE" \
--header="./HEADER-APACHE2" \
--template=./.maintain/frame-weight-template.hbs 2>&1
)
if [ $? -ne 0 ]; then
Expand All @@ -137,6 +138,7 @@ OUTPUT=$(
--execution=wasm \
--wasm-execution=compiled \
--weight-path="./frame/support/src/weights/" \
--header="./HEADER-APACHE2" \
--warmup=10 \
--repeat=100 2>&1
)
Expand Down

0 comments on commit f19ff2e

Please sign in to comment.