-
Notifications
You must be signed in to change notification settings - Fork 277
libevm phase 2: Use libevm statedb from upstream #1421
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
Merged
Merged
Conversation
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
Co-authored-by: Arran Schlosberg <[email protected]>
* add regression test * remove shared memory from accept and precompile interface * Update plugin/evm/vm_test.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * revert changes to test helper --------- Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Darioush Jalali <[email protected]>
* add validator state * add pausable uptime manager * remove stuttering name * rename state listener * add uptime tracking to VM * remove unused param * add wg for update validators * update state before network shutdown * restart bootstrapping status in test * add get validator to state * rename uptime to validator * fix mock state * tests * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * use update enum * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * respond to comments * update avalanchego dep branch * reviews * reword errs * fix test changes * fix upgrades after deactivating latest in context * use test branch from avalanchego * use branch commit for ava version * update e2e ava version * update avago dep * remove extra line... * export struct * reviews * conflict fix * custom err msg * add listener mock * bump avago test branch * remove config * remove api changes * use non-version db for validatorsDB * remove errs from resume and pause * check after stopping * use expectedTime in tests * reviews * fix len * remove log * use interfaces from pkgs * improve comments * new fields and refactorings * fix linter * clarify comments * update comment * bump to poc branch * reviews * update comment * update to avago master --------- Signed-off-by: Ceyhun Onur <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Darioush Jalali <[email protected]>
* add validator state * add pausable uptime manager * remove stuttering name * rename state listener * add uptime tracking to VM * remove unused param * add wg for update validators * update state before network shutdown * restart bootstrapping status in test * add get validator to state * rename uptime to validator * fix mock state * tests * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * use update enum * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * respond to comments * update avalanchego dep branch * reviews * reword errs * fix test changes * fix upgrades after deactivating latest in context * use test branch from avalanchego * use branch commit for ava version * update e2e ava version * update avago dep * remove extra line... * export struct * reviews * conflict fix * custom err msg * add listener mock * bump avago test branch * remove config * remove api changes * Revert "remove api changes" This reverts commit 8ef763f. * use non-version db for validatorsDB * remove errs from resume and pause * check after stopping * use expectedTime in tests * reviews * Update plugin/evm/vm.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * fix len * remove log * disable validators api by default * use interfaces from pkgs * improve comments * new fields and refactorings * add new fields * fix linter * clarify comments * update comment * bump to poc branch * enable validators API by default * reviews * update comment * update to avago master --------- Signed-off-by: Ceyhun Onur <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Darioush Jalali <[email protected]>
* Bump avalanchego to master * always sign uptime messages (testing branch) * nits * cleanup * assign to correct `err` * fix handler * move ValidatorUptime type to subnet-evm * disable always signing * implement on the type itself * remove unneeded code * fix ut * add validator state * add pausable uptime manager * remove stuttering name * rename state listener * add uptime tracking to VM * remove unused param * add wg for update validators * update state before network shutdown * restart bootstrapping status in test * add get validator to state * rename uptime to validator * fix mock state * tests * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * use update enum * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * Update plugin/evm/validators/state.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * respond to comments * update avalanchego dep branch * reviews * reword errs * fix test changes * fix upgrades after deactivating latest in context * use test branch from avalanchego * use branch commit for ava version * update e2e ava version * update avago dep * remove extra line... * export struct * implement acp118 signer and verifier * avoid revalidating in sign * refactor warp backend to use acp118 handler * prune warp db before backend init * add cache tests * remove uptime msg type * add cache test * fix linter * add validator uptimes * bump avago getcurrentvalidators branch * rename get validator IDs to NodeIDs * sign uptime warp msg base on uptime calculator * add tests * reviews * conflict fix * custom err msg * add listener mock * bump avago test branch * remove config * remove api changes * Revert "remove api changes" This reverts commit 8ef763f. * remove wrapped cache * use non-version db for validatorsDB * remove errs from resume and pause * check after stopping * use expectedTime in tests * reviews * Update plugin/evm/vm.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * fix len * fix tests * update avago branch * use ctx from utils * add empty check for source address * nits * remove log * disable validators api by default * fix test context * use interfaces from pkgs * improve comments * Uptime validation nits (#1378) * add uptime warp example * remove log * nit unused interface * add weight and isSov as fields * use validator struct in AddValidator * add comments to example file * fix test * add new fields to tests --------- Signed-off-by: Ceyhun Onur <[email protected]> * Update plugin/evm/validators/state.go Co-authored-by: Michael Kaplan <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * pass locker * rename addresscall verifier fn * new fields and refactorings * add new fields * merge nits * fix linter * clarify comments * update comment * remove getnodeID * bump to poc branch * enable validators API by default * reviews * reviews * update comment * update to avago master * revert test change --------- Signed-off-by: Ceyhun Onur <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Darioush Jalali <[email protected]> Co-authored-by: Michael Kaplan <[email protected]>
* fix start timestamp * add client
* add db inspect * Update plugin/evm/database.go Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * reduce db code from vm --------- Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]> Co-authored-by: Michael Kaplan <[email protected]>
* fix start timestamp * add client * rename sov to l1validator
* fix start timestamp * add client * rename sov to l1validator * bump avago to v1.11.13-rc.1 * update compatibility
* use nodeID filter and uptimePerc * add uptime seconds
Signed-off-by: mountcount <[email protected]>
Signed-off-by: chuangjinglu <[email protected]> Co-authored-by: Ceyhun Onur <[email protected]>
* typos README.md Signed-off-by: Dmytrol <[email protected]> * typos README.md Signed-off-by: Dmytrol <[email protected]> --------- Signed-off-by: Dmytrol <[email protected]> Co-authored-by: Ceyhun Onur <[email protected]>
* bump avalanchego to master (updates x/crypto) * fix * Encapsulate Signer (#693) * Remove the bls dependency --------- Co-authored-by: Darioush Jalali <[email protected]> * bump to v1.12.1 --------- Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]> Co-authored-by: Arran Schlosberg <[email protected]>
* add validators pkg readme * Apply suggestions from code review Co-authored-by: Meaghan FitzGerald <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * Apply suggestions from code review Co-authored-by: Meaghan FitzGerald <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * Apply suggestions from code review Co-authored-by: Meaghan FitzGerald <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * nits --------- Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Meaghan FitzGerald <[email protected]>
* add multiatch docker build to support arm * fix build img id * Update .github/workflows/publish_docker.yml Co-authored-by: Quentin McGaw <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * Update .github/workflows/publish_docker.yml Co-authored-by: Quentin McGaw <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> * fix vm id * remove debug echo * revert format change --------- Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Quentin McGaw <[email protected]>
- Localized mockgen commands in the package where they are needed - Generate mocks from your IDE directly - Platform independent way of generating mocks - Check automatically mocks are kept up to date with their matching interfaces - Check automatically mocks all have a matching source controlled generation command - Remove license headers for generated mocks - Generating mocks section added in contributing document - Use same mockgen version as specified in go.mod
* fix test generator (#724) * add go mod tidy check
qdm12
approved these changes
Jan 10, 2025
ceyonur
reviewed
Jan 13, 2025
ceyonur
approved these changes
Jan 13, 2025
Collaborator
ceyonur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
ceyonur
pushed a commit
that referenced
this pull request
Dec 1, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
Dec 2, 2025
Co-authored-by: Austin Larson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why this should be merged
Supersedes #1401
How this works
Continues libevm development by referencing a version of avalanchego without cyclical imports to avoid initializing libevm incorrectly from wallet & e2e tests.
In this phase of the refactoring, subnet-evm uses the upstream statedb & trie_prefetching mechanism.
Additional avalanchego changes: ava-labs/avalanchego#3645
New changes are commit 28942af and after
How this was tested
CI
Need to be documented?
No
Need to update RELEASES.md?
No