Skip to content

Commit

Permalink
[genesis] set Palau to activate at 04-04-2023 11pm UTC (#3823)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinxie committed Mar 22, 2023
1 parent 3f6a1e5 commit 72e312d
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
Expand Up @@ -200,11 +200,20 @@ func TestConstantinople(t *testing.T) {
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
21542760,
},
// after Okhotsk
// Okhotsk - Palau
{
action.EmptyAddress,
21542761,
},
{
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
22991400,
},
// after Palau
{
action.EmptyAddress,
22991401,
},
{
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
math.MaxUint64,
Expand Down
2 changes: 1 addition & 1 deletion blockchain/genesis/genesis.go
Expand Up @@ -69,7 +69,7 @@ func defaultConfig() Genesis {
MidwayBlockHeight: 16509241,
NewfoundlandBlockHeight: 17662681,
OkhotskBlockHeight: 21542761,
PalauBlockHeight: 31542761,
PalauBlockHeight: 22991401,
ToBeEnabledBlockHeight: math.MaxUint64,
},
Account: Account{
Expand Down
6 changes: 3 additions & 3 deletions blockchain/genesis/heightupgrade_test.go
Expand Up @@ -53,8 +53,8 @@ func TestNewHeightChange(t *testing.T) {
require.True(cfg.IsNewfoundland(uint64(17662681)))
require.False(cfg.IsOkhotsk(uint64(21542760)))
require.True(cfg.IsOkhotsk(uint64(21542761)))
require.False(cfg.IsPalau(uint64(31542760)))
require.True(cfg.IsPalau(uint64(31542761)))
require.False(cfg.IsPalau(uint64(22991400)))
require.True(cfg.IsPalau(uint64(22991401)))

require.Equal(cfg.PacificBlockHeight, uint64(432001))
require.Equal(cfg.AleutianBlockHeight, uint64(864001))
Expand All @@ -74,5 +74,5 @@ func TestNewHeightChange(t *testing.T) {
require.Equal(cfg.MidwayBlockHeight, uint64(16509241))
require.Equal(cfg.NewfoundlandBlockHeight, uint64(17662681))
require.Equal(cfg.OkhotskBlockHeight, uint64(21542761))
require.Equal(cfg.PalauBlockHeight, uint64(31542761))
require.Equal(cfg.PalauBlockHeight, uint64(22991401))
}

0 comments on commit 72e312d

Please sign in to comment.