Skip to main content
6 votes
Accepted

Increasing Block Size

You not only need to allow the block to get bigger, you also need to allow a higher BlockWeights. The BlockWeights is a parameter given to the frame_system::Config trait. It defines the amount of ...
bkchr's user avatar
  • 11.5k
4 votes
Accepted

Why is 5MB the limit for the block length?

The formal definition and reasoning can be found in W3F's Polkadot spec, specifically Definition 158 on Block Limits: https://spec.polkadot.network/#defn-polkadot-block-limits And more info from ...
Bruno's user avatar
  • 8,315
4 votes
Accepted

What should be the maximum size of a `BoundedVec`?

Is that too much for a block to handle if I iterate through this for example three times? The answer to this question is benchmarking, the result of running such benchmarks will give a value that you ...
Alejandro Martínez's user avatar
3 votes
Accepted

How to handle blocks with more than u16 events?

What would be a good way to handle this issue ? Opening an issue in PolkadotJs/App. Otherwise you can use the Python bindings: from substrateinterface import SubstrateInterface chain = ...
Oliver Tale-Yazdi's user avatar
3 votes

What should be the maximum size of a `BoundedVec`?

Just to add one thing into Alejandro's answer, the new Weights V2 has added a field into Weights: proof_size: pub struct Weight { /// The weight of computational time used based on ///...
Alex Bean's user avatar
  • 5,747
2 votes

Genesis chainspec size limit

There is no real limitation on the amount of data in the chaispec. Nothing prevents you from putting there gigabytes of data. You will only get some sort of "usability" issue by requiring to ...
bkchr's user avatar
  • 11.5k
1 vote

How do I scale decode a FrameSupportDispatchPerDispatchClassWeight (in rust)?

I assume the type that you are referring to is the storage type of System.blockWeight(). It is defined as PerDispatchClass<Weight> (also called ConsumedWeight). The concrete Weight type is ...
Oliver Tale-Yazdi's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible