Skip to content

Commit

Permalink
[genesis] set Sumatra to activate at 02-19-2024 00:58AM UTC (#4128)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinxie committed Feb 5, 2024
1 parent fbe7687 commit 52ec91d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions action/protocol/execution/evm/evm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ func TestConstantinople(t *testing.T) {
},
{
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
36704440,
28516680,
},
// after Sumatra
{
action.EmptyAddress,
36704441,
28516681,
},
{
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
Expand Down
8 changes: 4 additions & 4 deletions action/protocol/execution/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ func TestProtocol_Handle(t *testing.T) {
require.NoError(err)

require.NoError(ap.Add(context.Background(), selp))
blk, err := bc.MintNewBlock(testutil.TimestampNow())
blk, err := bc.MintNewBlock(fixedTime)
require.NoError(err)
require.NoError(bc.CommitBlock(blk))
require.Equal(1, len(blk.Receipts))
Expand Down Expand Up @@ -793,7 +793,7 @@ func TestProtocol_Handle(t *testing.T) {
log.S().Infof("execution %+v", execution)

require.NoError(ap.Add(context.Background(), selp))
blk, err = bc.MintNewBlock(testutil.TimestampNow())
blk, err = bc.MintNewBlock(fixedTime)
require.NoError(err)
require.NoError(bc.CommitBlock(blk))
require.Equal(1, len(blk.Receipts))
Expand Down Expand Up @@ -828,7 +828,7 @@ func TestProtocol_Handle(t *testing.T) {

log.S().Infof("execution %+v", execution)
require.NoError(ap.Add(context.Background(), selp))
blk, err = bc.MintNewBlock(testutil.TimestampNow())
blk, err = bc.MintNewBlock(fixedTime)
require.NoError(err)
require.NoError(bc.CommitBlock(blk))
require.Equal(1, len(blk.Receipts))
Expand All @@ -851,7 +851,7 @@ func TestProtocol_Handle(t *testing.T) {
require.NoError(err)

require.NoError(ap.Add(context.Background(), selp))
blk, err = bc.MintNewBlock(testutil.TimestampNow())
blk, err = bc.MintNewBlock(fixedTime)
require.NoError(err)
require.NoError(bc.CommitBlock(blk))
require.Equal(1, len(blk.Receipts))
Expand Down
2 changes: 1 addition & 1 deletion blockchain/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func defaultConfig() Genesis {
PalauBlockHeight: 22991401,
QuebecBlockHeight: 24838201,
RedseaBlockHeight: 26704441,
SumatraBlockHeight: 36704441,
SumatraBlockHeight: 28516681,
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 @@ -59,8 +59,8 @@ func TestNewHeightChange(t *testing.T) {
require.True(cfg.IsQuebec(uint64(24838201)))
require.False(cfg.IsRedsea(uint64(26704440)))
require.True(cfg.IsRedsea(uint64(26704441)))
require.False(cfg.IsSumatra(uint64(36704440)))
require.True(cfg.IsSumatra(uint64(36704441)))
require.False(cfg.IsSumatra(uint64(28516680)))
require.True(cfg.IsSumatra(uint64(28516681)))

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

0 comments on commit 52ec91d

Please sign in to comment.