This repository was archived by the owner on Nov 25, 2025. It is now read-only.
WIP: Libevm upstream sync with pivot change#830
Closed
alarso16 wants to merge 230 commits intolibevm-upstream-syncfrom
Closed
WIP: Libevm upstream sync with pivot change#830alarso16 wants to merge 230 commits intolibevm-upstream-syncfrom
alarso16 wants to merge 230 commits intolibevm-upstream-syncfrom
Conversation
* Remove the bls dependency --------- Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
* Release notes and avalanchego update * restore avago version * bump avago to master * ammend notes * go mod tidy * bump version * update notes
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
* new atomic pkg * bump avago * bump versions * change newimport clk to time * move utils * bump avago * go mod tidy * use address methods from avago * bump avago * bump e2e avago version
* new atomic pkg * bump avago * bump versions * move attomic gossip * lint * change newimport clk to time * move utils * bump avago * go mod tidy * update releases md * use address methods from avago * bump avago * bump e2e avago version * Update plugin/evm/atomic/gossip_test.go Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com> Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com> * Update plugin/evm/atomic/mempool.go Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com> Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com> * Update plugin/evm/config/config.go Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com> Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com> * Update plugin/evm/atomic/tx_heap.go Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com> Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com> * Update plugin/evm/config/config.go Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com> Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com> * fix reviews --------- Signed-off-by: Ceyhun Onur <ceyhun.onur@avalabs.org> Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com> Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com> Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
* header.yml is missing so removing ineffective go-license * Remove unneeded source constants * Remove unneeded source versions * Use go generate commands to generate mocks * Remove the need to install mockgen in the script * Add mock-up-to-date step to test CI workflow * Remove all mocks before generating them in CI * Add generate command for non-tracked mock (Note using source mode was compulsory due to CGO) * Use bash shell for mock check step * Remove script mock.gen.sh * docs(contributing): add mocks section * mockgen version used is the one defined in go.mod - requires a `tools.go` blank importing golang.org/x/tools/imports in order to have the `golang.org/x/tools` dependency satisfied for mockgen v0.4 - less future deltas when upgrading mockgen * ci: use more precise go generate regex * Add `git add --intent-to-add --all` to detect untracked files * Add copyright notices
* small changes * relevant warp changes * use wrapped db package * nit * equivalent to subnet-evm 843e3f7 * add multiatch docker build to support arm (#1417) * remove build_docker_image.sh --------- Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
…blocks (#719) - default behavior for pruning mode to reject blocks before the 32 blocks preceding the last accepted block - default behavior for archive mode to reject blocks before ~24h worth of blocks preceding the last accepted block - archive mode new option `historical-proof-query-window` to customize the blocks window, or set it to 0 to accept any block number
Co-authored-by: maskpp <maskpp266@gmail.com> Co-authored-by: Aaron Chen <aaronchen.lisp@gmail.com> Co-authored-by: Shiming Zhang <wzshiming@hotmail.com> Co-authored-by: Felix Lange <fjl@twurst.com> Co-authored-by: Nathan <Nathan.l@nodereal.io> Co-authored-by: Eric <45141191+zlacfzy@users.noreply.github.com>
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org> Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
…ialization, fixed gentrie error
…g, attempt to clean shared memory
Signed-off-by: Yacov Manevich <yacov.manevich@avalabs.org>
- changes applied from comments on the review of #820 - suggested changes from the review on #828 - add test to check PredicateBytesFromExtra is the inverse of SetPredicateBytesInExtra Signed-off-by: Quentin McGaw <quentin.mcgaw@gmail.com> Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org> Co-authored-by: Quentin McGaw <quentin.mcgaw@avalabs.org>
…erface used by x/sync. Both are managed by the dynamic syncer
…schemes in syncer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There's a few things that I should mention that are mostly related to structure.
downloader.gologic is very similar to that of thedownloader.goin geth. TheSnapSync()method essentiallyprocessSnapSyncContent. I removed a lot of the (seemingly) excessive logic here, but it seems to successfully move the pivot with rather rare errors.stateSyncerclienttoDownloaderis necessary because we need to block from queueing blocks once we finish the state sync, and then once the queue is cleared, we release the lock, allowing blocks to be verified as normal.Downloaderweren't my idea - copied from geth with minimal revision. I'm not married to it, if you have a more readable suggestion.My next steps:
TipToBufferand adjusting the pivot interval to find a "sweet spot".