From 2b0511a18509fcfc1bb700d4f94f3bd259978168 Mon Sep 17 00:00:00 2001 From: dustinxie Date: Tue, 9 Jul 2024 12:31:50 -0700 Subject: [PATCH] [genesis] set Upernavik to activate at Jul-22-2024 00:05:55AM +UTC (#4328) Co-authored-by: CoderZhi --- action/protocol/execution/evm/evm_test.go | 4 ++-- blockchain/genesis/genesis.go | 2 +- blockchain/genesis/heightupgrade_test.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/action/protocol/execution/evm/evm_test.go b/action/protocol/execution/evm/evm_test.go index 3739a4cda1..de32ff9ca1 100644 --- a/action/protocol/execution/evm/evm_test.go +++ b/action/protocol/execution/evm/evm_test.go @@ -259,12 +259,12 @@ func TestConstantinople(t *testing.T) { }, { "io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y", - 39275560, + 31174200, }, // after Upernavik { action.EmptyAddress, - 39275561, + 31174201, }, { "io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y", diff --git a/blockchain/genesis/genesis.go b/blockchain/genesis/genesis.go index c46b722334..cdcfe1d5ef 100644 --- a/blockchain/genesis/genesis.go +++ b/blockchain/genesis/genesis.go @@ -76,7 +76,7 @@ func defaultConfig() Genesis { RedseaBlockHeight: 26704441, SumatraBlockHeight: 28516681, TsunamiBlockHeight: 29275561, - UpernavikBlockHeight: 39275561, + UpernavikBlockHeight: 31174201, ToBeEnabledBlockHeight: math.MaxUint64, }, Account: Account{ diff --git a/blockchain/genesis/heightupgrade_test.go b/blockchain/genesis/heightupgrade_test.go index 72cdbc762d..42c66bcddc 100644 --- a/blockchain/genesis/heightupgrade_test.go +++ b/blockchain/genesis/heightupgrade_test.go @@ -63,8 +63,8 @@ func TestNewHeightChange(t *testing.T) { require.True(cfg.IsSumatra(uint64(28516681))) require.False(cfg.IsTsunami(uint64(29275560))) require.True(cfg.IsTsunami(uint64(29275561))) - require.False(cfg.IsUpernavik(uint64(39275560))) - require.True(cfg.IsUpernavik(uint64(39275561))) + require.False(cfg.IsUpernavik(uint64(31174200))) + require.True(cfg.IsUpernavik(uint64(31174201))) require.Equal(cfg.PacificBlockHeight, uint64(432001)) require.Equal(cfg.AleutianBlockHeight, uint64(864001)) @@ -89,5 +89,5 @@ func TestNewHeightChange(t *testing.T) { require.Equal(cfg.RedseaBlockHeight, uint64(26704441)) require.Equal(cfg.SumatraBlockHeight, uint64(28516681)) require.Equal(cfg.TsunamiBlockHeight, uint64(29275561)) - require.Equal(cfg.UpernavikBlockHeight, uint64(39275561)) + require.Equal(cfg.UpernavikBlockHeight, uint64(31174201)) }