From 46067a6be435ad2606b97f58a544012bac54ed4b Mon Sep 17 00:00:00 2001 From: MatheusFranco99 <48058141+MatheusFranco99@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:00:06 +0000 Subject: [PATCH 1/2] add mekong testnet --- types/beacon_types.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/beacon_types.go b/types/beacon_types.go index 3b774de08..73b6f262e 100644 --- a/types/beacon_types.go +++ b/types/beacon_types.go @@ -158,6 +158,9 @@ const ( // PraterNetwork represents the Prater test network. PraterNetwork BeaconNetwork = "prater" + // MekongNetwork represents the Mekong test network. + MekongNetwork BeaconNetwork = "mekong" + // BeaconTestNetwork is a simple test network with a custom genesis time BeaconTestNetwork BeaconNetwork = "now_test_network" ) @@ -174,6 +177,8 @@ func NetworkFromString(n string) BeaconNetwork { return HoleskyNetwork case string(PraterNetwork): return PraterNetwork + case string(MekongNetwork): + return MekongNetwork case string(BeaconTestNetwork): return BeaconTestNetwork default: @@ -190,6 +195,8 @@ func (n BeaconNetwork) ForkVersion() [4]byte { return [4]byte{0x01, 0x01, 0x70, 0x00} case PraterNetwork: return [4]byte{0x00, 0x00, 0x10, 0x20} + case MekongNetwork: + return [4]byte{0x10, 0x63, 0x76, 0x24} case BeaconTestNetwork: return [4]byte{0x99, 0x99, 0x99, 0x99} default: @@ -206,6 +213,8 @@ func (n BeaconNetwork) MinGenesisTime() uint64 { return 1695902400 case PraterNetwork: return 1616508000 + case MekongNetwork: + return 1730822340 case BeaconTestNetwork: return 1616508000 default: From 3e946dd5f1e36cb66f986ebce1912d1d3358fa6a Mon Sep 17 00:00:00 2001 From: MatheusFranco99 <48058141+MatheusFranco99@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:05:06 +0000 Subject: [PATCH 2/2] add genesis delay Co-authored-by: Matus Kysel --- types/beacon_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/beacon_types.go b/types/beacon_types.go index 73b6f262e..bbe1fa2bf 100644 --- a/types/beacon_types.go +++ b/types/beacon_types.go @@ -214,7 +214,7 @@ func (n BeaconNetwork) MinGenesisTime() uint64 { case PraterNetwork: return 1616508000 case MekongNetwork: - return 1730822340 + return 1730822340 + 60 // genesis delay case BeaconTestNetwork: return 1616508000 default: