From 905bf58321757b2d67953cb1810c3d614bf462dc Mon Sep 17 00:00:00 2001 From: "Nita Neou (Soph)" Date: Thu, 30 May 2024 16:38:40 +0700 Subject: [PATCH] [testnet] add harmony internal node in sharding config --- internal/configs/sharding/testnet.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/configs/sharding/testnet.go b/internal/configs/sharding/testnet.go index f598216301..6a957ec820 100644 --- a/internal/configs/sharding/testnet.go +++ b/internal/configs/sharding/testnet.go @@ -42,6 +42,8 @@ const ( func (ts testnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { switch { + case epoch.Cmp(big.NewInt(3392)) >= 0: // add harmony node, estimated 31 May 2:20AM UTC + return testnetV6_2 case epoch.Cmp(big.NewInt(3388)) >= 0: // one time fix for devnet shard 1 down, estimated 30 May 7:50AM UTC return testnetV6_1 case params.TestnetChainConfig.IsTestnetExternalEpoch(epoch): @@ -189,4 +191,12 @@ var ( hip30CollectionAddressTestnet, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch(), ) + testnetV6_2 = MustNewInstance( + 2, 30, 8, 0, + numeric.MustNewDecFromStr("0.9"), genesis.TNHarmonyAccountsV1, + genesis.TNFoundationalAccounts, emptyAllowlist, + feeCollectorsTestnet, numeric.MustNewDecFromStr("0.25"), + hip30CollectionAddressTestnet, testnetReshardingEpoch, + TestnetSchedule.BlocksPerEpoch(), + ) )