Untitled Post
3 years ago
Executed
This is a ReferendumV2 whose proposer address (Ea6jhP5gF4r7NqhkEoAXJDgSgYpNQNaTYU6gPsrEGfctaKR) is shown in on-chain info below. Only this proposer can edit this description and the title. If you own this account, login and tell us more about your proposal.
Comments (3)
Proposal Passed
(Sorry cannot edit above due to signer restrictions)
Fix HostConfiguration (maxCodeSize to 3 MiB)
The current Kusama
HostConfigurationdoes not fulfill all assumptions about its consistency. This proposal aims at correcting that by modifying the on-chain config.Problem
The
HostConfiguration::consistency_checkfunction asserts that the on-chainmax_code_sizeis never larger thanMAX_CODE_SIZE. This is violated on Kusama since the concretemax_code_sizeon-chain is 10 MiB andMAX_CODE_SIZEis only 3 MiB.You can verify this by querying PolkadotJS:
It is neccecary to correct this since otherwise the
consistency_checkwill stay a No-OP with the assumption: "You cannot break something that is already broken".Proposal
Set the on-chain
max_code_sizeback to a sane value of 3 MiB. A larger value is not expected to work due to networking restrictions. Related discussions about this are in polkadot/#7108 and polkadot/#7105.Impact on Para*s
Parachain/Parathread teams should check that all queued runtime upgrade have a size of at most 3 MiB (the
Runtime Sizeas reported bysrtool). A sweep across all parachains showed that the largest is currently 1.7 MiB, that is about 57% of the new limit. So no problem here.Impact on Developers
-
(Sorry cannot edit above due to signer restrictions)
Fix
HostConfiguration(maxCodeSizeto 3 MiB)The current Kusama
HostConfigurationdoes not fulfill all assumptions about its consistency. This proposal aims at correcting that by modifying the on-chain config.Problem
The
HostConfiguration::consistency_checkfunction asserts that the on-chainmax_code_sizeis never larger thanMAX_CODE_SIZE. This is violated on Kusama since the concretemax_code_sizeon-chain is 10 MiB andMAX_CODE_SIZEis only 3 MiB.You can verify this by querying PolkadotJS:
It is neccecary to correct this since otherwise the
consistency_checkwill stay a No-OP with the assumption: "You cannot break something that is already broken".Proposal
Set the on-chain
max_code_sizeback to a sane value of 3 MiB. A larger value is not expected to work due to networking restrictions. Related discussions about this are in polkadot/#7108 and polkadot/#7105.Impact on Para*s
Parachain/Parathread teams should check that all queued runtime upgrade have a size of at most 3 MiB (the
Runtime Sizeas reported bysrtool). A sweep across all parachains showed that the largest is currently 1.7 MiB, that is about 57% of the new limit. So no problem here.Impact on Developers
-
Polkassembly is now a read-only archive. Commenting is disabled.