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

A0-3861: Increase MaxCodeLen for contracts. #1570

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

DamianStraszak
Copy link
Contributor

@DamianStraszak DamianStraszak commented Jan 12, 2024

Description

THIS IS A RUNTIME-ONLY CHANGE.

Increases the maximum code len for a contract from 128 KB to 256 KB. The reason this is safe is that the constant 72 that we have in our integrity test changed:

Release note:

  • Increased maximum length of a contract from 128KB to 256 KB.

@DamianStraszak DamianStraszak changed the title A0-3861 Increase MaxCodeLen for contracts. A0-3861: Increase MaxCodeLen for contracts. Jan 12, 2024
@DamianStraszak DamianStraszak added this pull request to the merge queue Jan 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 12, 2024
@DamianStraszak DamianStraszak added this pull request to the merge queue Jan 12, 2024
Merged via the queue into main with commit c635442 Jan 12, 2024
13 of 15 checks passed
@DamianStraszak DamianStraszak deleted the increase-codelen branch January 12, 2024 16:19
DamianStraszak added a commit that referenced this pull request Feb 5, 2024
# Description

THIS IS A RUNTIME-ONLY CHANGE.

Increases the maximum code len for a contract from 128 KB to 256 KB. The
reason this is safe is that the constant 72 that we have in our
integrity test changed:
- first 72 -> 68 (which we didn't mirror in our repo, but it's here
https://github.com/paritytech/polkadot-sdk/blob/06fa111f58b0172c9f4ba7c209c8b6945787faeb/substrate/frame/contracts/src/lib.rs#L439
) this was a result of changing gas metering
- then 68 -> 32 -- this is a result of updating wasmi to v0.30 which
reduces the amount of memory each instruction requires. In slack I
include a message from a Pallet Contract Developer which clarifies this
further.


# Release note:

- Increased maximum length of a contract from 128KB to 256 KB.
DamianStraszak added a commit that referenced this pull request Feb 8, 2024
# Description

This is a cherry-pick from main only. Increases the maximum size of
contracts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants