Skip to content

Commit ff4ff30

Browse files
authored
core, params: define london block at 12965000 (#23176)
* core, params: define london block at 12965000 * core/forkid: fix test
1 parent 00b922f commit ff4ff30

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

core/forkid/forkid_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ func TestCreation(t *testing.T) {
6161
{9199999, ID{Hash: checksumToBytes(0x879d6e30), Next: 9200000}}, // Last Istanbul and first Muir Glacier block
6262
{9200000, ID{Hash: checksumToBytes(0xe029e991), Next: 12244000}}, // First Muir Glacier block
6363
{12243999, ID{Hash: checksumToBytes(0xe029e991), Next: 12244000}}, // Last Muir Glacier block
64-
{12244000, ID{Hash: checksumToBytes(0x0eb440f6), Next: 0}}, // First Berlin block
65-
{20000000, ID{Hash: checksumToBytes(0x0eb440f6), Next: 0}}, // Future Berlin block
64+
{12244000, ID{Hash: checksumToBytes(0x0eb440f6), Next: 12965000}}, // First Berlin block
65+
{12964999, ID{Hash: checksumToBytes(0x0eb440f6), Next: 12965000}}, // Last Berlin block
66+
{12965000, ID{Hash: checksumToBytes(0xb715077d), Next: 0}}, // First London block
67+
{20000000, ID{Hash: checksumToBytes(0xb715077d), Next: 0}}, // Future London block
6668
},
6769
},
6870
// Ropsten test cases
@@ -203,11 +205,11 @@ func TestValidation(t *testing.T) {
203205
// Local is mainnet Petersburg, remote is Rinkeby Petersburg.
204206
{7987396, ID{Hash: checksumToBytes(0xafec6b27), Next: 0}, ErrLocalIncompatibleOrStale},
205207

206-
// Local is mainnet Berlin, far in the future. Remote announces Gopherium (non existing fork)
208+
// Local is mainnet London, far in the future. Remote announces Gopherium (non existing fork)
207209
// at some future block 88888888, for itself, but past block for local. Local is incompatible.
208210
//
209211
// This case detects non-upgraded nodes with majority hash power (typical Ropsten mess).
210-
{88888888, ID{Hash: checksumToBytes(0x0eb440f6), Next: 88888888}, ErrLocalIncompatibleOrStale},
212+
{88888888, ID{Hash: checksumToBytes(0xb715077d), Next: 88888888}, ErrLocalIncompatibleOrStale},
211213

212214
// Local is mainnet Byzantium. Remote is also in Byzantium, but announces Gopherium (non existing
213215
// fork) at block 7279999, before Petersburg. Local is incompatible.

params/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ var (
6969
IstanbulBlock: big.NewInt(9_069_000),
7070
MuirGlacierBlock: big.NewInt(9_200_000),
7171
BerlinBlock: big.NewInt(12_244_000),
72+
LondonBlock: big.NewInt(12_965_000),
7273
Ethash: new(EthashConfig),
7374
}
7475

0 commit comments

Comments
 (0)