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

Update to geth 1.11.5-statediff-v5 #238

Merged
merged 40 commits into from
Jun 1, 2023
Merged

Update to geth 1.11.5-statediff-v5 #238

merged 40 commits into from
Jun 1, 2023

Conversation

roysc
Copy link
Collaborator

@roysc roysc commented Apr 12, 2023

An extensive refactor to update Geth interfaces and update for compatibility with the v5 schema.

Depends on:

i-norden and others added 18 commits February 21, 2023 19:47
…or the separation of concerns was because we used to fetch cids directly from the database but then use those to fetch iplds using an ipfs.BlockService abstraction ontop of our database (and/or a ipfs.BlockExchange). But now they are both accessed directly in the local DB. Additionally, some of the queries should be further refined/refactored/combined as we no longer need to take two trips but can retrieve cid and ipld in the same query.
@roysc roysc requested a review from i-norden April 12, 2023 14:28
@roysc roysc changed the base branch from v4 to v5 April 14, 2023 16:00
@roysc roysc force-pushed the roy/v5-dev branch 5 times, most recently from 53dee38 to da578d6 Compare May 25, 2023 04:25
Now uses:
* ipld direct_by_leaf StateDB for basic queries
* trie_by_cid StateDB for trie slice and proof queries

Also:
* vulcanize => cerc refactor
* Backend method to close dbs
* state tests are in multiple packages, to allow separate ginkgo suites
* removes gap-filler module
* integration tests and github workflows
* run stack-orchestrator for testnet
* fix various issues with tests, hardhat server, dockerfile
* fix cmd flags / env vars
* fix flaky tests and clean up code
* remove unused code, scripts
* remove outdated docs
* update version
@roysc roysc marked this pull request as ready for review May 25, 2023 14:27
Copy link
Collaborator

@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.

Looks great, this represents a tremendous amount of work. I've reviewed this line for line and haven't caught anything to fix. In the future we can consider if it is possible to break these major upgrades up into smaller pieces of work for PRs, but I am doubtful it is feasible to do so in such a way where the intermediate states have passing tests..

@i-norden
Copy link
Collaborator

Actually just a few nitpicks:

Lets remove https://github.com/cerc-io/ipld-eth-server/blob/roy/v5-dev/environments/subscribeExample.toml
And let's add back in the spacing here or create a bullet point list for the endpoints: https://github.com/cerc-io/ipld-eth-server/pull/238/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 they are all clumped onto one line now.

version/version.go Outdated Show resolved Hide resolved
@roysc roysc force-pushed the roy/v5-dev branch 2 times, most recently from 50cd76b to 911b0ed Compare May 29, 2023 12:25
@roysc roysc requested a review from i-norden May 29, 2023 13:39
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