Use the collation_gas_limit from validator manager contract as the gas limit for collations.
When the collators create the collation, check the collation gas limit.
When the validators verify the collation, check the collation gas limit.
Set shard state state.gas_limit to the collation_gas_limit after initialize the state from block.
A lots of tests were been modified because in this case, all the ShardChain need to have the class member ShardChain.main_chain and the validator manger contract has already been deployed on these MainChain.
Description
collation_gas_limit
from validator manager contract as the gas limit for collations.state.gas_limit
to thecollation_gas_limit
after initialize the state from block.ShardChain
need to have the class memberShardChain.main_chain
and the validator manger contract has already been deployed on theseMainChain
.How to test
Cute Animal Picture