From 6fe6446539ca7b64c9679bdde61f18d765852981 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Sat, 23 Jul 2022 09:54:11 +0200 Subject: [PATCH] params: set sepolia mergeNetsplitBlock to 1735371 (#25372) --- core/forkid/forkid_test.go | 10 ++++++++++ params/config.go | 1 + 2 files changed, 11 insertions(+) diff --git a/core/forkid/forkid_test.go b/core/forkid/forkid_test.go index ca698c47171d..2a0fb167d516 100644 --- a/core/forkid/forkid_test.go +++ b/core/forkid/forkid_test.go @@ -138,6 +138,16 @@ func TestCreation(t *testing.T) { {6000000, ID{Hash: checksumToBytes(0xB8C6299D), Next: 0}}, // Future London block }, }, + // Sepolia test cases + { + params.SepoliaChainConfig, + params.SepoliaGenesisHash, + []testcase{ + {0, ID{Hash: checksumToBytes(0xfe3366e7), Next: 1735371}}, // Unsynced, last Frontier, Homestead, Tangerine, Spurious, Byzantium, Constantinople, Petersburg, Istanbul, Berlin and first London block + {1735370, ID{Hash: checksumToBytes(0xfe3366e7), Next: 1735371}}, // Last London block + {1735371, ID{Hash: checksumToBytes(0xb96cbd13), Next: 0}}, // First MergeNetsplit block + }, + }, // Merge test cases { &mergeConfig, diff --git a/params/config.go b/params/config.go index a4159ed24593..78cfc0e65700 100644 --- a/params/config.go +++ b/params/config.go @@ -157,6 +157,7 @@ var ( BerlinBlock: big.NewInt(0), LondonBlock: big.NewInt(0), TerminalTotalDifficulty: big.NewInt(17_000_000_000_000_000), + MergeNetsplitBlock: big.NewInt(1735371), Ethash: new(EthashConfig), }