Skip to content

max_extrinsic in BlockWeight limit per class should take into account base_block #329

@gui1117

Description

@gui1117

when computing what is the maximal weight for an extrinsic of a given class we have to manually substract the base_block weight.

https://github.com/paritytech/substrate/blob/fcf950ca4906bed0b8118d6b40fa8a8a0acf9425/bin/node/runtime/src/lib.rs#L512-L515

Instead max_extrinsic should take into account that the weight consume by base_block is not available:

https://github.com/paritytech/substrate/blob/fcf950ca4906bed0b8118d6b40fa8a8a0acf9425/frame/system/src/limits.rs#L406-L416

Metadata

Metadata

Assignees

No one assigned

    Labels

    T1-FRAMEThis PR/Issue is related to core FRAME, the framework.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions