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

refactor trie root hash computation #6594

Draft
wants to merge 10 commits into
base: trie-concurrency-unit-tests
Choose a base branch
from

Conversation

BeniaminDrasovean
Copy link
Contributor

@BeniaminDrasovean BeniaminDrasovean commented Nov 11, 2024

Reasoning behind the pull request

  • There are multiple trie functions that are used to set the hash of a node.

Proposed changes

  • Merge setHash, setHashConcurrent and setRootHash functions from the trie. The resulting function will be able to set the hash for a specific trie node using goroutines. For example, a branch node will set the hashes of it's children on different goroutines, and after that it will compute it's own hash.

Testing procedure

  • System tests when all the PRs are merged in the feat branch

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

…refactor-trie-set-hash

# Conflicts:
#	integrationTests/state/stateTrieSync/stateTrieSync_test.go
#	trie/branchNode.go
#	trie/branchNode_test.go
#	trie/extensionNode_test.go
#	trie/patriciaMerkleTrie.go
@BeniaminDrasovean BeniaminDrasovean changed the base branch from refactor-trie-mutex-usage to trie-concurrency-unit-tests December 4, 2024 10:07
…o refactor-trie-set-hash

# Conflicts:
#	trie/extensionNode_test.go
#	trie/patriciaMerkleTrie.go
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