mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 19:45:41 +00:00
[contracts] Remove stack height limiter wasm instrumentation (#12957)
* Remove stack height limiter from uploaded wasm * fix benchmarks * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts Co-authored-by: command-bot <> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
@@ -2384,7 +2384,6 @@ benchmarks! {
|
||||
call_body: Some(body::repeated(r * INSTR_BENCHMARK_BATCH_SIZE, &[
|
||||
Instruction::Call(2), // call aux
|
||||
])),
|
||||
inject_stack_metering: true,
|
||||
.. Default::default()
|
||||
}));
|
||||
}: {
|
||||
@@ -2408,7 +2407,6 @@ benchmarks! {
|
||||
RandomI32(0, num_elements as i32),
|
||||
Regular(Instruction::CallIndirect(0, 0)), // we only have one sig: 0
|
||||
])),
|
||||
inject_stack_metering: true,
|
||||
table: Some(TableSegment {
|
||||
num_elements,
|
||||
function_index: 2, // aux
|
||||
@@ -2441,7 +2439,6 @@ benchmarks! {
|
||||
RandomI32(0, num_elements as i32),
|
||||
Regular(Instruction::CallIndirect(p.min(1), 0)), // aux signature: 1 or 0
|
||||
])),
|
||||
inject_stack_metering: true,
|
||||
table: Some(TableSegment {
|
||||
num_elements,
|
||||
function_index: 2, // aux
|
||||
@@ -2968,7 +2965,7 @@ benchmarks! {
|
||||
new.encode()
|
||||
};
|
||||
let instance = Contract::<T>::new(
|
||||
WasmModule::instrumented(code, gas_metering, true), data,
|
||||
WasmModule::instrumented(code, gas_metering), data,
|
||||
)?;
|
||||
let data = {
|
||||
let transfer: ([u8; 4], AccountIdOf<T>, BalanceOf<T>) = (
|
||||
@@ -3015,7 +3012,7 @@ benchmarks! {
|
||||
new.encode()
|
||||
};
|
||||
let instance = Contract::<T>::with_caller(
|
||||
caller, WasmModule::instrumented(code, gas_metering, true), data,
|
||||
caller, WasmModule::instrumented(code, gas_metering), data,
|
||||
)?;
|
||||
balance[0] = 1;
|
||||
let data = {
|
||||
|
||||
Reference in New Issue
Block a user