Schedule Dencun for Chiado (#9184)

This commit is contained in:
Andrew Ashikhmin 2024-01-09 20:57:02 +01:00 committed by GitHub
parent 9c47cce62c
commit 8db023bea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -881,13 +881,15 @@ func chiadoConfig() BeaconChainConfig {
cfg.AltairForkVersion = 0x0100006f cfg.AltairForkVersion = 0x0100006f
cfg.BellatrixForkEpoch = 180 cfg.BellatrixForkEpoch = 180
cfg.BellatrixForkVersion = 0x0200006f cfg.BellatrixForkVersion = 0x0200006f
cfg.CapellaForkEpoch = 244224
cfg.CapellaForkVersion = 0x0300006f
cfg.DenebForkEpoch = 8265728
cfg.DenebForkVersion = 0x0400006f
cfg.TerminalTotalDifficulty = "231707791542740786049188744689299064356246512" cfg.TerminalTotalDifficulty = "231707791542740786049188744689299064356246512"
cfg.DepositContractAddress = "0xb97036A26259B7147018913bD58a774cf91acf25" cfg.DepositContractAddress = "0xb97036A26259B7147018913bD58a774cf91acf25"
cfg.BaseRewardFactor = 25 cfg.BaseRewardFactor = 25
cfg.SlotsPerEpoch = 16 cfg.SlotsPerEpoch = 16
cfg.EpochsPerSyncCommitteePeriod = 512 cfg.EpochsPerSyncCommitteePeriod = 512
cfg.CapellaForkEpoch = math.MaxUint64
cfg.DenebForkEpoch = math.MaxUint64
cfg.InitializeForkSchedule() cfg.InitializeForkSchedule()
return cfg return cfg
} }

View File

@ -141,7 +141,10 @@ func TestCreation(t *testing.T) {
[]testcase{ []testcase{
{0, 0, ID{Hash: checksumToBytes(0x50d39d7b), Next: 1684934220}}, {0, 0, ID{Hash: checksumToBytes(0x50d39d7b), Next: 1684934220}},
{4100418, 1684934215, ID{Hash: checksumToBytes(0x50d39d7b), Next: 1684934220}}, // Last pre-Shanghai block {4100418, 1684934215, ID{Hash: checksumToBytes(0x50d39d7b), Next: 1684934220}}, // Last pre-Shanghai block
{4100419, 1684934220, ID{Hash: checksumToBytes(0xa15a4252), Next: 0}}, // First Shanghai block {4100419, 1684934220, ID{Hash: checksumToBytes(0xa15a4252), Next: 1706724940}}, // First Shanghai block
{8102175, 1706724935, ID{Hash: checksumToBytes(0xa15a4252), Next: 1706724940}}, // Last Shanghai block (approx)
{8102176, 1706724940, ID{Hash: checksumToBytes(0x5fbc16bc), Next: 0}}, // First Cancun block (approx)
{10000000, 1800000000, ID{Hash: checksumToBytes(0x5fbc16bc), Next: 0}}, // Future Cancun block (mock)
}, },
}, },
// Mumbai test cases // Mumbai test cases

View File

@ -17,6 +17,7 @@
"terminalTotalDifficulty": 231707791542740786049188744689299064356246512, "terminalTotalDifficulty": 231707791542740786049188744689299064356246512,
"terminalTotalDifficultyPassed": true, "terminalTotalDifficultyPassed": true,
"shanghaiTime": 1684934220, "shanghaiTime": 1684934220,
"cancunTime": 1706724940,
"minBlobGasPrice": 1000000000, "minBlobGasPrice": 1000000000,
"maxBlobGasPerBlock": 262144, "maxBlobGasPerBlock": 262144,
"targetBlobGasPerBlock": 131072, "targetBlobGasPerBlock": 131072,