Skip to content

Commit f7cbd4f

Browse files
dustinxieYutong Pei
authored and
Yutong Pei
committed
activate Greenland at 8-20-2020 3pm DST (iotexproject#2383)
1 parent 638804b commit f7cbd4f

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

action/protocol/execution/evm/evm_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ func TestConstantinople(t *testing.T) {
128128
// after Greenland
129129
{
130130
action.EmptyAddress,
131-
5553721,
131+
6544441,
132132
},
133133
{
134134
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
135-
5553721,
135+
6544441,
136136
},
137137
}
138138

action/protocol/staking/handlers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ func TestProtocol_HandleConsignmentTransfer(t *testing.T) {
19571957
// case X: success
19581958
{
19591959
identityset.PrivateKey(32).HexString(),
1960-
5553821,
1960+
6544441,
19611961
identityset.Address(1),
19621962
false,
19631963
"Ethereum",

blockchain/genesis/genesis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func defaultConfig() Genesis {
5757
EasterBlockHeight: 4478761,
5858
FbkMigrationBlockHeight: 5157001,
5959
FairbankBlockHeight: 5165641,
60-
GreenlandBlockHeight: 5553721,
60+
GreenlandBlockHeight: 6544441,
6161
},
6262
Account: Account{
6363
InitBalanceMap: make(map[string]string),

config/heightupgrade.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ type (
3131
HeightName int
3232

3333
// HeightUpgrade lists heights at which certain fixes take effect
34-
// prior to Dardanelles, each epoch consists of 360 sub-epochs
34+
// prior to Dardanelles, each epoch consists of 360 blocks (10s/block)
3535
// so height = 360k + 1
36-
// starting Dardanelles, each epoch consists of 720 sub-epochs
36+
// starting Dardanelles, each epoch consists of 720 blocks (5s/block)
3737
// however, DardanellesHeight is set to 360(2k + 1) + 1 (instead of 720k + 1)
3838
// so height afterwards must be set to 360(2k + 1) + 1
3939
HeightUpgrade struct {

config/heightupgrade_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func TestNewHeightChange(t *testing.T) {
4848
require.True(hu.IsPost(Fairbank, uint64(5165641)))
4949
require.True(hu.IsPre(FbkMigration, uint64(5157000)))
5050
require.True(hu.IsPost(FbkMigration, uint64(5157001)))
51-
require.True(hu.IsPre(Greenland, uint64(5553720)))
52-
require.True(hu.IsPost(Greenland, uint64(5553721)))
51+
require.True(hu.IsPre(Greenland, uint64(6544440)))
52+
require.True(hu.IsPost(Greenland, uint64(6544441)))
5353
require.Panics(func() {
5454
hu.IsPost(-1, 0)
5555
})
@@ -63,5 +63,5 @@ func TestNewHeightChange(t *testing.T) {
6363
require.Equal(hu.EasterBlockHeight(), uint64(4478761))
6464
require.Equal(hu.FairbankBlockHeight(), uint64(5165641))
6565
require.Equal(hu.FbkMigrationBlockHeight(), uint64(5157001))
66-
require.Equal(hu.GreenlandBlockHeight(), uint64(5553721))
66+
require.Equal(hu.GreenlandBlockHeight(), uint64(6544441))
6767
}

0 commit comments

Comments
 (0)