Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contracts: Remove no longer enforced limits from the Schedule #3184

Merged
merged 6 commits into from
Feb 8, 2024

Conversation

athei
Copy link
Member

@athei athei commented Feb 2, 2024

When switching from the instrumented gas metering to the wasmi gas metering we also removed all imposed limits regarding Wasm module internals. All those things do not interact with the host and have to be handled by wasmi. For example, Wasmi charges additional gas for parameters to each function because as they incur some overhead.

Back then we took the opportunity to remove the dependency on the deprecated parity-wasm which was used to enforce those limits.

This PR merely removes them from the Schedule they aren't enforced for a while.

@athei athei added the T2-pallets This PR/Issue is related to a particular pallet. label Feb 2, 2024
@athei athei enabled auto-merge February 3, 2024 11:36
@athei athei disabled auto-merge February 7, 2024 16:04
@athei athei added T7-smart_contracts This PR/Issue is related to smart contracts. and removed T2-pallets This PR/Issue is related to a particular pallet. labels Feb 8, 2024
@athei athei added this pull request to the merge queue Feb 8, 2024
Merged via the queue into master with commit d54412c Feb 8, 2024
127 of 130 checks passed
@athei athei deleted the at/remove-unused branch February 8, 2024 15:57
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
…tytech#3184)

When switching from the instrumented gas metering to the wasmi gas
metering we also removed all imposed limits regarding Wasm module
internals. All those things do not interact with the host and have to be
handled by wasmi. For example, Wasmi charges additional gas for
parameters to each function because as they incur some overhead.

Back then we took the opportunity to remove the dependency on the
deprecated `parity-wasm` which was used to enforce those limits.

This PR merely removes them from the `Schedule` they aren't enforced for
a while.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T7-smart_contracts This PR/Issue is related to smart contracts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants