Skip to content

Commit

Permalink
Merge #5055
Browse files Browse the repository at this point in the history
5055: Update wasm lane 5. r=mpapierski a=mpapierski

This PR adjusts 5th lane in size, and in gas limit.

- 65k will fit more than half of the wasm sessions used in the mainnet to date 
- 3CSPR will accommodate a Wasm with at least one transfer (2.5CSPR) with some extra code.

See also mainnet data analysis here: https://gist.github.com/mpapierski/1b7a603bde1d4fe99c836ef9b68b3d0e#file-data_with_imports-csv

Co-authored-by: Michał Papierski <michal@casper.network>
  • Loading branch information
casperlabs-bors-ng[bot] and mpapierski authored Jan 10, 2025
2 parents fba310d + e26bfbd commit ecab85a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ jobs:
run: make doc

- name: audit
run: make audit
run: |
cargo install cargo-audit --locked
make audit
3 changes: 2 additions & 1 deletion resources/local/chainspec.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ install_upgrade_lane = [2, 750_000, 2048, 100_000_000_000, 1]
wasm_lanes = [
[3, 262_144, 1024, 100_000_000_000, 1],
[4, 131_072, 1024, 50_000_000_000, 2],
[5, 16_384, 512, 2_500_000_000, 80]]
[5, 65_536, 512, 3_000_000_000, 80]
]

[transactions.deploy]
# The maximum number of Motes allowed to be spent during payment. 0 means unlimited.
Expand Down
3 changes: 2 additions & 1 deletion resources/production/chainspec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ install_upgrade_lane = [2, 750_000, 2048, 100_000_000_000, 1]
wasm_lanes = [
[3, 262_144, 1024, 100_000_000_000, 1],
[4, 131_072, 1024, 50_000_000_000, 2],
[5, 16_384, 512, 2_500_000_000, 80]]
[5, 65_536, 512, 3_000_000_000, 80]
]

[transactions.deploy]
# The maximum number of Motes allowed to be spent during payment. 0 means unlimited.
Expand Down

0 comments on commit ecab85a

Please sign in to comment.