You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2024. It is now read-only.
At the moment we are hardcoding the XCM weights using the FixedWeightBounds with the following configuration:
parameter_types!{// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.pubUnitWeightCost:u64 = 1_000_000_000;pubconstMaxInstructions:u32 = 100;}
...
pub structXcmConfig;impl xcm_executor::ConfigforXcmConfig{
...
typeWeigher = FixedWeightBounds<UnitWeightCost,RuntimeCall,MaxInstructions>;
...
}impl pallet_xcm::ConfigforXcmConfig{
...
typeWeigher = FixedWeightBounds<UnitWeightCost,RuntimeCall,MaxInstructions>;
...
}
We should replace the FixedWeightBounds with WeightInfoBounds and use the weights resulting from the pallet_xcm_benchmarks. From the runtime perspective, there are some changes that are needed over the define_benchmarks! and impl frame_benchmarking::Benchmark<Block> for Runtime . Here is the example for Statemine configuration:
At the moment we are hardcoding the XCM weights using the
FixedWeightBounds
with the following configuration:We should replace the
FixedWeightBounds
withWeightInfoBounds
and use the weights resulting from thepallet_xcm_benchmarks
. From the runtime perspective, there are some changes that are needed over thedefine_benchmarks!
andimpl frame_benchmarking::Benchmark<Block> for Runtime
. Here is the example for Statemine configuration:https://github.com/paritytech/cumulus/blob/polkadot-v0.9.37/parachains/runtimes/assets/statemine/src/lib.rs#L850
This change should be back ported into branch
xcmv3-dev
as well.The text was updated successfully, but these errors were encountered: