Add prefix for block / transaction #293
Closed
rabbitprincess
started this conversation in
General
Replies: 1 comment 25 replies
-
As long as all content that is stored using hash as the key has this format below, there is no risk of conflict:
It only happens with the merkle trie because the storage format is different:
So if the hash of block and tx are computed using "linear content", there is no risk of a hash to map to a different content |
Beta Was this translation helpful? Give feedback.
25 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trie key is saved with 's' prefix in #200. it can prevent overwritten by contract values.
But, I think that is not sufficient, because block and tx also saved without prefix.
to prevent overwritten, block and transaction also need to add prefix when saved in db.
Beta Was this translation helpful? Give feedback.
All reactions