Skip to content

Commit

Permalink
[genesis] set Tsunami to activate at 04-03-2024 00:52:05 AM +UTC (#4203)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinxie authored Mar 26, 2024
1 parent 03b99c6 commit 14f8243
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion action/protocol/execution/evm/evm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,20 @@ func TestConstantinople(t *testing.T) {
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
28516680,
},
// after Sumatra
// after Sumatra - Tsunami
{
action.EmptyAddress,
28516681,
},
{
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
29275560,
},
// after Tsunami
{
action.EmptyAddress,
29275561,
},
{
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
1261440000, // = 200*365*24*3600/5, around 200 years later
Expand Down
2 changes: 1 addition & 1 deletion blockchain/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func defaultConfig() Genesis {
QuebecBlockHeight: 24838201,
RedseaBlockHeight: 26704441,
SumatraBlockHeight: 28516681,
TsunamiBlockHeight: 38516681,
TsunamiBlockHeight: 29275561,
ToBeEnabledBlockHeight: math.MaxUint64,
},
Account: Account{
Expand Down
6 changes: 3 additions & 3 deletions blockchain/genesis/heightupgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func TestNewHeightChange(t *testing.T) {
require.True(cfg.IsRedsea(uint64(26704441)))
require.False(cfg.IsSumatra(uint64(28516680)))
require.True(cfg.IsSumatra(uint64(28516681)))
require.False(cfg.IsTsunami(uint64(38516680)))
require.True(cfg.IsTsunami(uint64(38516681)))
require.False(cfg.IsTsunami(uint64(29275560)))
require.True(cfg.IsTsunami(uint64(29275561)))

require.Equal(cfg.PacificBlockHeight, uint64(432001))
require.Equal(cfg.AleutianBlockHeight, uint64(864001))
Expand All @@ -86,5 +86,5 @@ func TestNewHeightChange(t *testing.T) {
require.Equal(cfg.QuebecBlockHeight, uint64(24838201))
require.Equal(cfg.RedseaBlockHeight, uint64(26704441))
require.Equal(cfg.SumatraBlockHeight, uint64(28516681))
require.Equal(cfg.TsunamiBlockHeight, uint64(38516681))
require.Equal(cfg.TsunamiBlockHeight, uint64(29275561))
}

0 comments on commit 14f8243

Please sign in to comment.