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

Trees cache merging support #8

Merged
merged 4 commits into from
May 15, 2019
Merged

Trees cache merging support #8

merged 4 commits into from
May 15, 2019

Conversation

moshababo
Copy link
Contributor

@moshababo moshababo commented May 14, 2019

  • Adding trees cache merging support (cache.Merge and cache.BuildTop functions).
  • Reversed the dependency between cache and merkle packages, so that cache will consume merkle. This was done because in cache.BuildTop a new tree is being built. It required to turn merkle_test.go to black-box testing, and so some types/fields in merkle package had to turn public. Other solutions were applicable, but we could improve that in a follow-up PR.
  • TestMergeAndBuildTopUnbalanced test is currently failing. @noamnelke please give a look on that before i'll fix it, to verify that we want to support this scenario.

Added #9 and #10 issues for follow-up PRs.

@moshababo moshababo requested a review from noamnelke May 14, 2019 09:06
Copy link
Member

@noamnelke noamnelke left a comment

Choose a reason for hiding this comment

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

I didn't finish the review, but I have to head home so I'll finish tomorrow.

cache/merge.go Outdated Show resolved Hide resolved
cache/merge_test.go Show resolved Hide resolved
cache/merge_test.go Show resolved Hide resolved
cache/merge_test.go Show resolved Hide resolved
cache/merge_test.go Show resolved Hide resolved
cache/merge.go Outdated Show resolved Hide resolved
cache/merge.go Outdated Show resolved Hide resolved
@moshababo moshababo requested a review from noamnelke May 15, 2019 12:29
cache/merge.go Outdated Show resolved Hide resolved
@moshababo moshababo merged commit 516ccde into develop May 15, 2019
@moshababo moshababo deleted the trees_merging branch May 15, 2019 13:04
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.

2 participants