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.

seal: avoid hitting the trie when computing weight #6486

@pepyakin

Description

@pepyakin

For computing the weight cost of put_code we fetch the schedule from the storage. However, accessing the storage within the validate_transaction path is discouraged. That's why we should consider switching the put_code_per_byte_cost to be a const.

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