@@ -31,7 +31,7 @@ import (
3131// the correct fork ID.
3232func TestCreation (t * testing.T ) {
3333 mergeConfig := * params .MainnetChainConfig
34- mergeConfig .MergeNetsplitBlock = big .NewInt (15000000 )
34+ mergeConfig .MergeNetsplitBlock = big .NewInt (18000000 )
3535 type testcase struct {
3636 head uint64
3737 want ID
@@ -68,8 +68,10 @@ func TestCreation(t *testing.T) {
6868 {12964999 , ID {Hash : checksumToBytes (0x0eb440f6 ), Next : 12965000 }}, // Last Berlin block
6969 {12965000 , ID {Hash : checksumToBytes (0xb715077d ), Next : 13773000 }}, // First London block
7070 {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
7375 },
7476 },
7577 // Ropsten test cases
@@ -163,9 +165,11 @@ func TestCreation(t *testing.T) {
163165 {12964999 , ID {Hash : checksumToBytes (0x0eb440f6 ), Next : 12965000 }}, // Last Berlin block
164166 {12965000 , ID {Hash : checksumToBytes (0xb715077d ), Next : 13773000 }}, // First London block
165167 {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
169173 },
170174 },
171175 }
@@ -242,11 +246,11 @@ func TestValidation(t *testing.T) {
242246 // Local is mainnet Petersburg, remote is Rinkeby Petersburg.
243247 {7987396 , ID {Hash : checksumToBytes (0xafec6b27 ), Next : 0 }, ErrLocalIncompatibleOrStale },
244248
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)
246250 // at some future block 88888888, for itself, but past block for local. Local is incompatible.
247251 //
248252 // 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 },
250254
251255 // Local is mainnet Byzantium. Remote is also in Byzantium, but announces Gopherium (non existing
252256 // fork) at block 7279999, before Petersburg. Local is incompatible.
0 commit comments