Skip to content

Surprisingly for frame system ParaChainDefaultConfig and SolochainDefaultConfig default weight info to () #10758

@gui1117

Description

@gui1117

ParaChainDefaultConfig and SolochainDefaultConfig are some default configuration for frame system Config trait. But the default for the weight infos are (). Which means by default the weights used for frame system calls and transaction extensions are the substrate weights which is benchmarked for a different runtime and should not be used except for testing.

I think this is a wrong and error prone default.

/// Weight information for the extrinsics of this pallet.
type SystemWeightInfo = ();
/// Weight information for the extensions of this pallet.
type ExtensionsWeightInfo = ();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions