From 992805a5f6edb4196ac7892bd6fbcdea8baa66d4 Mon Sep 17 00:00:00 2001 From: Shane Bammel Date: Tue, 26 Mar 2024 16:14:46 -0500 Subject: [PATCH] Add Deneb fork config --- config/params/mainnet_pulsechain_config.go | 4 ++++ config/params/testnet_pulsechain_v4_config.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/config/params/mainnet_pulsechain_config.go b/config/params/mainnet_pulsechain_config.go index e10881e23..ce35be1de 100644 --- a/config/params/mainnet_pulsechain_config.go +++ b/config/params/mainnet_pulsechain_config.go @@ -1,5 +1,7 @@ package params +import "math" + // UsePulseChainNetworkConfig uses the PulseChain beacon chain mainnet network config. func UsePulseChainNetworkConfig() { cfg := BeaconNetworkConfig().Copy() @@ -42,6 +44,8 @@ func PulseChainConfig() *BeaconChainConfig { cfg.BellatrixForkEpoch = 2 cfg.CapellaForkVersion = []byte{0x00, 0x00, 0x03, 0x6c} cfg.CapellaForkEpoch = 3 + cfg.DenebForkVersion = []byte{0x00, 0x00, 0x03, 0x6d} + cfg.DenebForkEpoch = math.MaxUint64 cfg.SecondsPerSlot = 10 cfg.EjectionBalance = 16 * 1e15 cfg.DepositChainID = 369 diff --git a/config/params/testnet_pulsechain_v4_config.go b/config/params/testnet_pulsechain_v4_config.go index b9ee055d0..ff873dd8d 100644 --- a/config/params/testnet_pulsechain_v4_config.go +++ b/config/params/testnet_pulsechain_v4_config.go @@ -1,5 +1,7 @@ package params +import "math" + // UsePulseChainTestnetV4NetworkConfig uses the PulseChain beacon chain testnet network config. func UsePulseChainTestnetV4NetworkConfig() { cfg := BeaconNetworkConfig().Copy() @@ -40,6 +42,8 @@ func PulseChainTestnetV4Config() *BeaconChainConfig { cfg.BellatrixForkEpoch = 2 cfg.CapellaForkVersion = []byte{0x00, 0x00, 0x09, 0x46} cfg.CapellaForkEpoch = 4200 + cfg.DenebForkVersion = []byte{0x00, 0x00, 0x09, 0x47} + cfg.DenebForkEpoch = math.MaxUint64 cfg.SecondsPerSlot = 10 cfg.EjectionBalance = 16 * 1e15 cfg.DepositChainID = 943