Skip to content

Commit 57b99e5

Browse files
committed
Schedule Pectra hard fork for Gnosis Mainnet (#14521)
See gnosischain/configs#44 and gnosischain/specs#74
1 parent 18e202d commit 57b99e5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

cl/clparams/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,10 @@ func gnosisConfig() BeaconChainConfig {
11071107
cfg.CapellaForkVersion = 0x03000064
11081108
cfg.DenebForkEpoch = 889856
11091109
cfg.DenebForkVersion = 0x04000064
1110-
cfg.ElectraForkEpoch = math.MaxUint64
1110+
cfg.ElectraForkEpoch = 1337856
1111+
cfg.ElectraForkVersion = 0x05000064
1112+
cfg.FuluForkVersion = 0x06000064
1113+
cfg.FuluForkEpoch = math.MaxUint64
11111114
cfg.TerminalTotalDifficulty = "8626000000000000000000058750000000000000000000"
11121115
cfg.DepositContractAddress = "0x0B98057eA310F4d31F2a452B414647007d1645d9"
11131116
cfg.BaseRewardFactor = 25

core/forkid/forkid_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ func TestCreation(t *testing.T) {
151151
{29242931, 1690889650, ID{Hash: checksumToBytes(0x018479d3), Next: 1690889660}}, // Last pre-Shanghai block
152152
{29242932, 1690889660, ID{Hash: checksumToBytes(0x2efe91ba), Next: 1710181820}}, // First Shanghai block
153153
{32880679, 1710181810, ID{Hash: checksumToBytes(0x2efe91ba), Next: 1710181820}}, // Last Shanghai block
154-
{32880680, 1710181820, ID{Hash: checksumToBytes(0x1384dfc1), Next: 0}}, // First Cancun block
155-
{40000000, 1800000000, ID{Hash: checksumToBytes(0x1384dfc1), Next: 0}}, // Future Cancun block (mock)
154+
{32880680, 1710181820, ID{Hash: checksumToBytes(0x1384dfc1), Next: 1746021820}}, // First Cancun block
155+
{39834364, 1746021815, ID{Hash: checksumToBytes(0x1384dfc1), Next: 1746021820}}, // Last Cancun block (approx)
156+
{39834365, 1746021820, ID{Hash: checksumToBytes(0x2f095d4a), Next: 0}}, // First Prague block (approx)
157+
{50000000, 1800000000, ID{Hash: checksumToBytes(0x2f095d4a), Next: 0}}, // Future Prague block (mock)
156158
},
157159
},
158160
// Chiado test cases

params/chainspecs/gnosis.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"terminalTotalDifficultyPassed": true,
1616
"shanghaiTime": 1690889660,
1717
"cancunTime": 1710181820,
18+
"pragueTime": 1746021820,
1819
"minBlobGasPrice": 1000000000,
1920
"blobSchedule": {
2021
"cancun": {

0 commit comments

Comments
 (0)