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

Removed MerkleValue type. #845

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

batconjurer
Copy link
Member

@batconjurer batconjurer commented Nov 30, 2022

The design of the merkle tree is that each subtree should handle it's own particulars and the top level storage should be unaware of these details. The MerkleValue type violated this principal by requiring top level storage to correctly cast values to the right type which would then be checked by the sub-trees. This caused bugs and made strained the storage API. This PR removes this type.

PR #846 is the corresponding PR to main.

shared/src/ledger/storage/merkle_tree.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@james-chf james-chf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@batconjurer batconjurer merged commit a48251f into eth-bridge-integration Dec 1, 2022
@batconjurer batconjurer deleted the bat/ethbridge/fix-merkle-values branch December 1, 2022 09:25
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.

3 participants