Skip to content

Conversation

@RomarQ
Copy link
Contributor

@RomarQ RomarQ commented Mar 25, 2025

What does it do?

Follow up of polkadot-fellows/runtimes#553

The changes contained in this PR centralize the MAX_POV_SIZE in a single constant and enables 10 MB PoV for moonbase and moonriver runtimes.

Also includes the following polkadot-sdk changes:

What important points should reviewers know?

  • gas per PoV ratio is now expected to be half, resulting in cheaper ethereum transactions when (PoV gas is the effective gas).

⚠️ Breaking Changes ⚠️

  • proof_size worst case scenario in pallet-ethereum-xcm extrinsics has now doubled, because of GasWeightMapping::gas_to_weight, which computes the proof size in the following way: let proof_size = gas.saturating_div(ratio). This is a worst case scenario which needs to be accounted since PoV gas is now cheaper.

@RomarQ RomarQ marked this pull request as draft March 25, 2025 15:25
@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2025

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2424 KB (no changes) 🚨

Moonbeam runtime: 2404 KB (+4 KB) 🚨

Moonriver runtime: 2396 KB (no changes) ✅

Compared to latest release (runtime-3501)

Moonbase runtime: 2424 KB (+472 KB compared to latest release) 🚨

Moonbeam runtime: 2404 KB (+464 KB compared to latest release) 🚨

Moonriver runtime: 2396 KB (+456 KB compared to latest release) ⚠️

@RomarQ RomarQ self-assigned this Mar 25, 2025
@RomarQ RomarQ added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes labels Mar 25, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2025

Coverage Report

@@                       Coverage Diff                       @@
##           master   rq/increase-moonbase-max-pov     +/-   ##
===============================================================
  Coverage   74.27%                         74.27%   0.00%     
  Files         383                            383             
  Lines       97131                          97131             
===============================================================
  Hits        72137                          72137             
  Misses      24994                          24994             
Files Changed Coverage

Coverage generated Wed Mar 26 02:40:09 UTC 2025

@RomarQ RomarQ marked this pull request as ready for review March 26, 2025 00:36
@RomarQ RomarQ changed the title Enable 10 Mb PoV for moonbase Enable 10 Mb PoV for moonbase and moonriver Mar 26, 2025
@RomarQ RomarQ added breaking Needs to be mentioned in breaking changes and removed not-breaking Does not need to be mentioned in breaking changes labels Mar 26, 2025
Copy link
Contributor

@manuelmauro manuelmauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@RomarQ RomarQ merged commit 10be70a into master Mar 26, 2025
52 checks passed
@RomarQ RomarQ deleted the rq/increase-moonbase-max-pov branch March 26, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants