Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert unnecessary commits #10

Open
wants to merge 2 commits into
base: loomchain
Choose a base branch
from
Open

Revert unnecessary commits #10

wants to merge 2 commits into from

Conversation

pathornteng
Copy link

We have added code that makes updating and committing state trie deterministically by sorting keys. However, the order of inserted keys is not necessary, since the root hash of trie is calculated by the nodes of tries. As long as the node values and the number of nodes are identical across nodes, root hashes will be deterministic. This PR reverts the unnecessary commits that slow down the nodes.

Note: this should not require any feature flags since the order does not affect the root hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant