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

bump coreth past upgrade schedule refactor #3278

Merged
merged 11 commits into from
Aug 13, 2024

Conversation

darioush
Copy link
Contributor

@darioush darioush commented Aug 7, 2024

Why this should be merged

Fixes the upgrade test, removes deprecated constants.

How this works

go get github.com/ava-labs/coreth@v0.13.8-fix-genesis-upgrade

How this was tested

CI

@@ -149,7 +150,8 @@ func NewTestGenesis(
// Define C-Chain genesis
cChainGenesis := &core.Genesis{
Config: params.AvalancheLocalChainConfig,
Difficulty: big.NewInt(0), // Difficulty is a mandatory field
Difficulty: big.NewInt(0), // Difficulty is a mandatory field
Timestamp: uint64(upgrade.InitiallyActiveTime.Unix()), // This time enables Avalanche upgrades by default
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is needed for backwards compatibility as params.AvalancheLocalChainConfig now uses avalanchego InitiallyActiveTime instead of genesis to activate avalanche upgrades (specifically ap3 which also impacts the outcome of genesis)

@darioush darioush marked this pull request as ready for review August 8, 2024 15:49
@meaghanfitzgerald meaghanfitzgerald added this to the v1.12.0-prerelease milestone Aug 9, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 13, 2024
Merged via the queue into master with commit 7520071 Aug 13, 2024
21 checks passed
@StephenButtolph StephenButtolph deleted the bump-coreth-to-master branch August 13, 2024 18:17
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.

4 participants