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.

Allow DB Whitelisting from Benchmarks #6802

@shawntabrizi

Description

@shawntabrizi

We should allow a developer writing runtime benchmarks to whitelist a DB key as a part of their benchmarking code.

This will most commonly be used to whitelist the caller of the benchmark extrinsic. This would mean we could use accounts other than caller, 0, 0 as the caller of a function, and correctly ignore changes to that account.

This would involve adding/change the host functions exposed by the benchmarking DB. Right now we have set_whitelist which allows you to set a complete whitelist (or reset a whitelist by setting it to an empty vec). We should probably introduce an add_to_whitelist function which simply appends new keys to the existing whitelist.

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