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.

Refactor redundancy of TrieIdGenerate #2325

@pepyakin

Description

@pepyakin

At the moment the TrieId is required to return a :child_storage: prefix from the trie id it generated. This is not ideal because a trie_id is stored along with every instance of an account, and that means that we have extra 15 bytes of overhead.

We initially came with this approach because we needed something done quick and we were afraid of adding this prefix manually on every access to the child storage because it is more error-prone.

The ideal solution would be to perform access to the child storage via some common abstraction that will handle all this subtleties.

Metadata

Metadata

Assignees

Labels

I7-refactorCode needs refactoring.I8-footprintAn enhancement to provide a smaller (system load, memory, network or disk) footprint.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions