File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func defaultConfig() Genesis {
68
68
KamchatkaBlockHeight : 13816441 ,
69
69
LordHoweBlockHeight : 13979161 ,
70
70
MidwayBlockHeight : 16509241 ,
71
- NewfoundlandBlockHeight : 36509241 ,
71
+ NewfoundlandBlockHeight : 17662681 ,
72
72
ToBeEnabledBlockHeight : math .MaxUint64 ,
73
73
},
74
74
Account : Account {
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ func TestNewHeightChange(t *testing.T) {
50
50
require .True (cfg .IsLordHowe (uint64 (13979161 )))
51
51
require .False (cfg .IsMidway (uint64 (16509240 )))
52
52
require .True (cfg .IsMidway (uint64 (16509241 )))
53
- require .False (cfg .IsNewfoundland (uint64 (36509240 )))
54
- require .True (cfg .IsNewfoundland (uint64 (36509241 )))
53
+ require .False (cfg .IsNewfoundland (uint64 (17662680 )))
54
+ require .True (cfg .IsNewfoundland (uint64 (17662681 )))
55
55
56
56
require .Equal (cfg .PacificBlockHeight , uint64 (432001 ))
57
57
require .Equal (cfg .AleutianBlockHeight , uint64 (864001 ))
@@ -69,5 +69,5 @@ func TestNewHeightChange(t *testing.T) {
69
69
require .Equal (cfg .KamchatkaBlockHeight , uint64 (13816441 ))
70
70
require .Equal (cfg .LordHoweBlockHeight , uint64 (13979161 ))
71
71
require .Equal (cfg .MidwayBlockHeight , uint64 (16509241 ))
72
- require .Equal (cfg .NewfoundlandBlockHeight , uint64 (36509241 ))
72
+ require .Equal (cfg .NewfoundlandBlockHeight , uint64 (17662681 ))
73
73
}
Original file line number Diff line number Diff line change @@ -226,10 +226,9 @@ func AliasIsHdwalletKey(addressOrAlias string) bool {
226
226
// IsNewfoundland returns whether the height passed NewfoundlandHeight
227
227
func IsNewfoundland (chainID uint32 , h uint64 ) bool {
228
228
var newfoundland uint64 = math .MaxUint64
229
- // TODO: when make next release, update newfoundland to correct HF block number
230
229
switch chainID {
231
230
case 1 :
232
- newfoundland = 20027641
231
+ newfoundland = 17662681
233
232
case 2 :
234
233
newfoundland = 14268961
235
234
}
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ func TestNewfoundland(t *testing.T) {
103
103
h uint64
104
104
is bool
105
105
}{
106
- {1 , 20027640 , false },
107
- {1 , 20027641 , true },
106
+ {1 , 17662680 , false },
107
+ {1 , 17662681 , true },
108
108
{2 , 14268960 , false },
109
109
{2 , 14268961 , true },
110
110
{3 , 1 , false },
You can’t perform that action at this time.
0 commit comments