Skip to content

Commit a97e961

Browse files
dustinxieenvestcc
authored andcommitted
[genesis] set Tsunami to activate at 04-08-2024 23:52PM UTC
1 parent 6af54b6 commit a97e961

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

action/protocol/execution/evm/evm_test.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,20 @@ func TestConstantinople(t *testing.T) {
243243
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
244244
28516680,
245245
},
246-
// after Sumatra
246+
// after Sumatra - Tsunami
247247
{
248248
action.EmptyAddress,
249249
28516681,
250250
},
251+
{
252+
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
253+
29378520,
254+
},
255+
// after Tsunami
256+
{
257+
action.EmptyAddress,
258+
29378521,
259+
},
251260
{
252261
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
253262
1261440000, // = 200*365*24*3600/5, around 200 years later

blockchain/genesis/genesis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func defaultConfig() Genesis {
7575
QuebecBlockHeight: 24838201,
7676
RedseaBlockHeight: 26704441,
7777
SumatraBlockHeight: 28516681,
78-
TsunamiBlockHeight: 38516681,
78+
TsunamiBlockHeight: 29378521,
7979
ToBeEnabledBlockHeight: math.MaxUint64,
8080
},
8181
Account: Account{

blockchain/genesis/heightupgrade_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ func TestNewHeightChange(t *testing.T) {
6161
require.True(cfg.IsRedsea(uint64(26704441)))
6262
require.False(cfg.IsSumatra(uint64(28516680)))
6363
require.True(cfg.IsSumatra(uint64(28516681)))
64-
require.False(cfg.IsTsunami(uint64(38516680)))
65-
require.True(cfg.IsTsunami(uint64(38516681)))
64+
require.False(cfg.IsTsunami(uint64(29378520)))
65+
require.True(cfg.IsTsunami(uint64(29378521)))
6666

6767
require.Equal(cfg.PacificBlockHeight, uint64(432001))
6868
require.Equal(cfg.AleutianBlockHeight, uint64(864001))
@@ -86,5 +86,5 @@ func TestNewHeightChange(t *testing.T) {
8686
require.Equal(cfg.QuebecBlockHeight, uint64(24838201))
8787
require.Equal(cfg.RedseaBlockHeight, uint64(26704441))
8888
require.Equal(cfg.SumatraBlockHeight, uint64(28516681))
89-
require.Equal(cfg.TsunamiBlockHeight, uint64(38516681))
89+
require.Equal(cfg.TsunamiBlockHeight, uint64(29378521))
9090
}

0 commit comments

Comments
 (0)