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

Rewrite trie_by_cid package to be read-write #19

Merged
merged 4 commits into from
May 18, 2023
Merged

Rewrite trie_by_cid package to be read-write #19

merged 4 commits into from
May 18, 2023

Conversation

roysc
Copy link
Contributor

@roysc roysc commented May 8, 2023

Implements a full copy of go-ethereum/trie, adapted to pass CIDs instead of hashes. This replaces the read-only implementation we had before, in order to support full EVM operations and root hash computation for cerc-io/ipld-eth-db-validator#26.

Also adds CI workflows, resolves #12

@roysc roysc requested a review from i-norden May 8, 2023 07:19
@roysc roysc force-pushed the roy/v5-dev branch 9 times, most recently from f2118e5 to 8890e2b Compare May 16, 2023 09:45
@roysc roysc changed the title Set up CI actions Rewrite trie_by_cid package to be read-write May 16, 2023
@roysc roysc marked this pull request as ready for review May 16, 2023 09:48
Copy link
Contributor

@i-norden i-norden left a comment

Choose a reason for hiding this comment

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

This looks fantastic. Don't have the bandwidth atm to review this line-by-line but nothing jumps out at me after a once-over and the CI provides additional confidence. Do we need to adjust (or re-run) the benchmarks for this?

trie_by_cid/trie/util_test.go Outdated Show resolved Hide resolved
@roysc
Copy link
Contributor Author

roysc commented May 18, 2023

The benchmark code does need to be updated, but this should have a minimal impact.

roysc added 3 commits May 19, 2023 01:08
* use logrus instead of geth log
* remove benchmarks
* impl NodeIterator.ParentPath
* update go mods
@roysc roysc merged commit bd87702 into v5 May 18, 2023
@github-cerc-io github-cerc-io deleted the roy/v5-dev branch May 29, 2024 13:05
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.

Add tests in CICD
2 participants