From c9009e89cb6db5b27375086b7b10fce6f7c1d643 Mon Sep 17 00:00:00 2001 From: iquidus Date: Thu, 27 Jan 2022 21:09:06 -0500 Subject: [PATCH] define monoceros hard-fork block number (1_981_337) --- core/forkid/forkid_test.go | 4 +++- params/config.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/forkid/forkid_test.go b/core/forkid/forkid_test.go index 9ea2c0815cea..a257134dd082 100644 --- a/core/forkid/forkid_test.go +++ b/core/forkid/forkid_test.go @@ -50,7 +50,9 @@ func TestCreation(t *testing.T) { {1499999, ID{Hash: checksumToBytes(0xa4ecb4b6), Next: 1500000}}, // Last Byzantium, Constantinople, Petersbug, (andromeda) {1500000, ID{Hash: checksumToBytes(0x65ea97e0), Next: 1791793}}, // First Istanbul (taurus) {1791792, ID{Hash: checksumToBytes(0x65ea97e0), Next: 1791793}}, // Last Istanbul (taurus) - {1791793, ID{Hash: checksumToBytes(0x9ec7f55b), Next: 0}}, // First Berlin, London (orion) + {1791793, ID{Hash: checksumToBytes(0x9ec7f55b), Next: 1981337}}, // First Berlin, London (orion) + {1981336, ID{Hash: checksumToBytes(0x9ec7f55b), Next: 1981337}}, // Last Berlin, London (orion) + {1981337, ID{Hash: checksumToBytes(0x9a2ad858), Next: 0}}, // First Monoceros // {5000000, ID{Hash: checksumToBytes(0x757a1c47), Next: 0}}, // Future Berlin block }, }, diff --git a/params/config.go b/params/config.go index c6d3439598f9..a6bebb5bac87 100644 --- a/params/config.go +++ b/params/config.go @@ -64,7 +64,7 @@ var ( IstanbulBlock: big.NewInt(1500000), // Taurus BerlinBlock: big.NewInt(1791793), // Orion LondonBlock: big.NewInt(1791793), // Orion - MonocerosBlock: big.NewInt(math.MaxInt64), + MonocerosBlock: big.NewInt(1981337), // Monoceros Ubqhash: &UbqhashConfig{ UIP0Block: big.NewInt(0), UIP1Epoch: big.NewInt(22),