Skip to content

Commit

Permalink
Merge #5060
Browse files Browse the repository at this point in the history
5060: Bump lanes config r=mpapierski a=mpapierski

This PR bumps lane config based on mainnet data activity
Impact:

- Install/upgrade lane and lane no.3 (aka biggest wasm lane) from 100CSPR to 1000CSPR -> this should cover 98% of all Wasm interactions (session & stored).  
- Lane 4 already covers 58% of session code and 0.5% of smart contract interactions
- Lane (no.5) is bumped from 3CSPR to 5CSPR -> will now cover about 40% of all session codes (up from 30%) and 99.5% of smart contracts (up from 99.1%)

Busy wasms were validated with new settings.

Wasm saturated block will consume about 1600CSPR of gas (increased from 500CSPR), leaving 25CSPR worth of computation for native contract calls (e.g., transfers, and auction contracts). Current mainnet usage data suggests 70% of chain interactions are session/smart contracts and 30% are native transfers.

Co-authored-by: Michał Papierski <michal@casper.network>
  • Loading branch information
casperlabs-bors-ng[bot] and mpapierski authored Jan 17, 2025
2 parents ecab85a + 657291f commit 2785b71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions resources/local/chainspec.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ vm_casper_v2 = false
# [4] -> The maximum number of transactions the lane can contain
native_mint_lane = [0, 2048, 1024, 100_000_000, 650]
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 650]
install_upgrade_lane = [2, 750_000, 2048, 100_000_000_000, 1]
install_upgrade_lane = [2, 750_000, 2048, 1_000_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, 65_536, 512, 3_000_000_000, 80]
[3, 262_144, 1024, 1_000_000_000_000, 1],
[4, 131_072, 1024, 100_000_000_000, 2],
[5, 65_536, 512, 5_000_000_000, 80]
]

[transactions.deploy]
Expand Down
8 changes: 4 additions & 4 deletions resources/production/chainspec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ vm_casper_v2 = false
# [4] -> The maximum number of transactions the lane can contain
native_mint_lane = [0, 2048, 1024, 100_000_000, 650]
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 650]
install_upgrade_lane = [2, 750_000, 2048, 100_000_000_000, 1]
install_upgrade_lane = [2, 750_000, 2048, 1_000_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, 65_536, 512, 3_000_000_000, 80]
[3, 262_144, 1024, 1_000_000_000_000, 1],
[4, 131_072, 1024, 100_000_000_000, 2],
[5, 65_536, 512, 5_000_000_000, 80]
]

[transactions.deploy]
Expand Down

0 comments on commit 2785b71

Please sign in to comment.