@@ -31,7 +31,7 @@ import (
31
31
// the correct fork ID.
32
32
func TestCreation (t * testing.T ) {
33
33
mergeConfig := * params .MainnetChainConfig
34
- mergeConfig .MergeNetsplitBlock = big .NewInt (15000000 )
34
+ mergeConfig .MergeNetsplitBlock = big .NewInt (18000000 )
35
35
type testcase struct {
36
36
head uint64
37
37
want ID
@@ -68,8 +68,10 @@ func TestCreation(t *testing.T) {
68
68
{12964999 , ID {Hash : checksumToBytes (0x0eb440f6 ), Next : 12965000 }}, // Last Berlin block
69
69
{12965000 , ID {Hash : checksumToBytes (0xb715077d ), Next : 13773000 }}, // First London block
70
70
{13772999 , ID {Hash : checksumToBytes (0xb715077d ), Next : 13773000 }}, // Last London block
71
- {13773000 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 0 }}, // First Arrow Glacier block
72
- {20000000 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 0 }}, // Future Arrow Glacier block
71
+ {13773000 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 15050000 }}, // First Arrow Glacier block
72
+ {15049999 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 15050000 }}, // Last Arrow Glacier block
73
+ {15050000 , ID {Hash : checksumToBytes (0xf0afd0e3 ), Next : 0 }}, // First Gray Glacier block
74
+ {20000000 , ID {Hash : checksumToBytes (0xf0afd0e3 ), Next : 0 }}, // Future Gray Glacier block
73
75
},
74
76
},
75
77
// Ropsten test cases
@@ -163,9 +165,11 @@ func TestCreation(t *testing.T) {
163
165
{12964999 , ID {Hash : checksumToBytes (0x0eb440f6 ), Next : 12965000 }}, // Last Berlin block
164
166
{12965000 , ID {Hash : checksumToBytes (0xb715077d ), Next : 13773000 }}, // First London block
165
167
{13772999 , ID {Hash : checksumToBytes (0xb715077d ), Next : 13773000 }}, // Last London block
166
- {13773000 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 15000000 }}, // First Arrow Glacier block
167
- {15000000 , ID {Hash : checksumToBytes (0xe3abe201 ), Next : 0 }}, // First Merge Start block
168
- {20000000 , ID {Hash : checksumToBytes (0xe3abe201 ), Next : 0 }}, // Future Merge Start block
168
+ {13773000 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 15050000 }}, // First Arrow Glacier block
169
+ {15049999 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 15050000 }}, // Last Arrow Glacier block
170
+ {15050000 , ID {Hash : checksumToBytes (0xf0afd0e3 ), Next : 18000000 }}, // First Gray Glacier block
171
+ {18000000 , ID {Hash : checksumToBytes (0x4fb8a872 ), Next : 0 }}, // First Merge Start block
172
+ {20000000 , ID {Hash : checksumToBytes (0x4fb8a872 ), Next : 0 }}, // Future Merge Start block
169
173
},
170
174
},
171
175
}
@@ -242,11 +246,11 @@ func TestValidation(t *testing.T) {
242
246
// Local is mainnet Petersburg, remote is Rinkeby Petersburg.
243
247
{7987396 , ID {Hash : checksumToBytes (0xafec6b27 ), Next : 0 }, ErrLocalIncompatibleOrStale },
244
248
245
- // Local is mainnet Arrow Glacier, far in the future. Remote announces Gopherium (non existing fork)
249
+ // Local is mainnet Gray Glacier, far in the future. Remote announces Gopherium (non existing fork)
246
250
// at some future block 88888888, for itself, but past block for local. Local is incompatible.
247
251
//
248
252
// This case detects non-upgraded nodes with majority hash power (typical Ropsten mess).
249
- {88888888 , ID {Hash : checksumToBytes (0x20c327fc ), Next : 88888888 }, ErrLocalIncompatibleOrStale },
253
+ {88888888 , ID {Hash : checksumToBytes (0xf0afd0e3 ), Next : 88888888 }, ErrLocalIncompatibleOrStale },
250
254
251
255
// Local is mainnet Byzantium. Remote is also in Byzantium, but announces Gopherium (non existing
252
256
// fork) at block 7279999, before Petersburg. Local is incompatible.
0 commit comments