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.

Benchmark System::set_code #13192

@ggwpez

Description

@ggwpez

Currently we hard-code weights for System::set_code and System::set_code_without_checks:

#[pallet::call_index(2)]
#[pallet::weight((T::BlockWeights::get().max_block, DispatchClass::Operational))]
pub fn set_code(origin: OriginFor<T>, code: Vec<u8>) -> DispatchResultWithPostInfo {

This is inflexible and always results in un-schedulable runtime upgrades. We should benchmark them instead.

cc @gavofyork

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.U2-some_time_soonIssue is worth doing soon.Z1-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions