Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Polkadot's XCM config should use WeightInfoBound weigher #6785

@KiChjang

Description

@KiChjang

Currently, the Polkadot XCM config uses FixedWeightBounds as the weigher:

type Weigher = FixedWeightBounds<BaseXcmWeight, RuntimeCall, MaxInstructions>;

I don't think there is a good reason for this other than oversight, especially when Kusama, Rococo and Westend all have WeightInfoBounds as their weigher.

We should thus change the Polkadot XCM config to use WeightInfoBounds. Doing so requires benchmarking XCM instructions on the Polkadot runtime to get benchmark-weighted values for each instruction's weight.

File: runtime/polkadot/src/xcm_config.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    T6-XCMThis PR/Issue is related to XCM.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions