You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For normal runtime modules, decl_storage offers the linked_map variant, which allows iteration of mappings. The HashMap collection currently offered has no such iteration.
Importantly, Vec and BTreeMap style storage containers are not a good alternative in all contexts, because they do not have sublinear running time on insertion/deletion, and no light client proofs for individual elements or mappings, respectively.
The text was updated successfully, but these errors were encountered:
Robbepop
changed the title
Misssing iterable storage map
Missing iteration interface for storage::HashMap
Feb 4, 2020
For normal runtime modules,
decl_storage
offers thelinked_map
variant, which allows iteration of mappings. TheHashMap
collection currently offered has no such iteration.Importantly,
Vec
andBTreeMap
style storage containers are not a good alternative in all contexts, because they do not have sublinear running time on insertion/deletion, and no light client proofs for individual elements or mappings, respectively.The text was updated successfully, but these errors were encountered: