Skip to content

Commit d673834

Browse files
committed
Update default cook height to 1641601 (#1546)
1 parent fb80b0e commit d673834

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

blockchain/genesis/genesis.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ import (
1919

2020
"github.com/iotexproject/go-pkgs/hash"
2121
"github.com/iotexproject/iotex-address/address"
22+
"github.com/iotexproject/iotex-proto/golang/iotextypes"
23+
2224
"github.com/iotexproject/iotex-core/pkg/log"
2325
"github.com/iotexproject/iotex-core/pkg/unit"
2426
"github.com/iotexproject/iotex-core/test/identityset"
25-
"github.com/iotexproject/iotex-proto/golang/iotextypes"
2627
)
2728

2829
// Default contains the default genesis config
@@ -48,8 +49,8 @@ func defaultConfig() Genesis {
4849
TimeBasedRotation: false,
4950
PacificBlockHeight: 432001,
5051
AleutianBlockHeight: 864001,
51-
BeringBlockHeight: 1382401,
52-
CookBlockHeight: 1555201,
52+
BeringBlockHeight: 1512001,
53+
CookBlockHeight: 1641601,
5354
},
5455
Account: Account{
5556
InitBalanceMap: make(map[string]string),

config/heightupgrade_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ func TestNewHeightChange(t *testing.T) {
2424
hu := NewHeightUpgrade(cfg)
2525
require.Equal(uint64(432001), hu.pacificHeight)
2626
require.Equal(uint64(864001), hu.aleutianHeight)
27-
require.Equal(uint64(1382401), hu.beringHeight)
28-
require.Equal(uint64(1555201), hu.cookHeight)
27+
require.Equal(uint64(1512001), hu.beringHeight)
28+
require.Equal(uint64(1641601), hu.cookHeight)
2929

3030
require.True(hu.IsPre(Pacific, uint64(432000)))
3131
require.True(hu.IsPost(Pacific, uint64(432001)))
3232
require.True(hu.IsPre(Aleutian, uint64(864000)))
3333
require.True(hu.IsPost(Aleutian, uint64(864001)))
34-
require.True(hu.IsPre(Bering, uint64(1382400)))
35-
require.True(hu.IsPost(Bering, uint64(1382401)))
36-
require.True(hu.IsPre(Cook, uint64(1555200)))
37-
require.True(hu.IsPost(Cook, uint64(1555201)))
34+
require.True(hu.IsPre(Bering, uint64(1512000)))
35+
require.True(hu.IsPost(Bering, uint64(1512001)))
36+
require.True(hu.IsPre(Cook, uint64(1641600)))
37+
require.True(hu.IsPost(Cook, uint64(1641601)))
3838
}

0 commit comments

Comments
 (0)