Skip to content

Remove double hashing in state db access #167

Closed
@junha1

Description

@junha1

State DB itself hashes the key before it accesses to TrieDB or TrieDBMut.
So hashing a key before calling DB functions is a redundant job.
There might be other spots with same issue but the only thing I could find was this: https://github.com/CodeChain-io/foundry/blob/ics-poc/state/src/traits.rs#L116

Note that the action_data has same problem, but will be removed soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    experimentExperimental featuresicsInterchain standard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions