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

get upgrade configs from context #630

Merged
merged 10 commits into from
Aug 13, 2024
Merged

get upgrade configs from context #630

merged 10 commits into from
Aug 13, 2024

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Aug 9, 2024

Why this should be merged

AvalancheGo added upgrade config to snow context

Related AvalancheGo PR ava-labs/avalanchego#3283

However we don't really need to change anything in Coreth since upgrades were written to chainConfig in genesis thus we have other source of information rather than upgrade configs in avalanchego/snow.Context.

How this works

  • uses network ID rather than chain ID in config selection

How this was tested

e2e should mostly cover this. I also did a local network testing with avalanchego to test out if network upgrades are passed correctly (but we don't actually use them)

@ceyonur ceyonur requested a review from darioush as a code owner August 9, 2024 14:32
@ceyonur ceyonur marked this pull request as draft August 9, 2024 14:33
plugin/evm/vm.go Outdated Show resolved Hide resolved
@ARR4N
Copy link
Contributor

ARR4N commented Aug 12, 2024

How this was tested

Locally

Can you please clarify? The existing automated tests, or something else?

@ceyonur ceyonur marked this pull request as ready for review August 13, 2024 12:55
@ceyonur ceyonur marked this pull request as draft August 13, 2024 19:45
@ceyonur ceyonur marked this pull request as ready for review August 13, 2024 20:29
@darioush darioush enabled auto-merge (squash) August 13, 2024 20:35
@darioush darioush merged commit 83eec50 into master Aug 13, 2024
8 checks passed
@darioush darioush deleted the upgrade-configs branch August 13, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants