Skip to content

Commit

Permalink
[testnet] add harmony internal node in sharding config
Browse files Browse the repository at this point in the history
  • Loading branch information
sophoah committed May 30, 2024
1 parent a8a2a13 commit 905bf58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/configs/sharding/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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(),
)
)

0 comments on commit 905bf58

Please sign in to comment.