use headers on templates (#12546)

This commit is contained in:
Shawn Tabrizi
2022-10-21 17:46:25 -04:00
committed by GitHub
parent c0e8abe1a8
commit 932e1a334b
2 changed files with 3 additions and 17 deletions
+1 -17
View File
@@ -1,20 +1,4 @@
// This file is part of Substrate. {{header}}
// 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.
//! Autogenerated weights for {{pallet}} //! Autogenerated weights for {{pallet}}
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}} //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
+2
View File
@@ -121,6 +121,7 @@ for PALLET in "${PALLETS[@]}"; do
--wasm-execution=compiled \ --wasm-execution=compiled \
--heap-pages=4096 \ --heap-pages=4096 \
--output="$WEIGHT_FILE" \ --output="$WEIGHT_FILE" \
--header="./HEADER-APACHE2" \
--template=./.maintain/frame-weight-template.hbs 2>&1 --template=./.maintain/frame-weight-template.hbs 2>&1
) )
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@@ -137,6 +138,7 @@ OUTPUT=$(
--execution=wasm \ --execution=wasm \
--wasm-execution=compiled \ --wasm-execution=compiled \
--weight-path="./frame/support/src/weights/" \ --weight-path="./frame/support/src/weights/" \
--header="./HEADER-APACHE2" \
--warmup=10 \ --warmup=10 \
--repeat=100 2>&1 --repeat=100 2>&1
) )