Skip to content
Permalink
Browse files

Merge pull request #1610 from john-harmony/replace_4_fn

replace 4 nodes 101-104
  • Loading branch information...
LeoHChen committed Sep 17, 2019
2 parents a3d8927 + 862aaf4 commit 0903a96db865a6ee824b609124b943bfab388f66
@@ -25,6 +25,7 @@ const (
mainnetV1Epoch = 12
mainnetV1_1Epoch = 19
mainnetV1_2Epoch = 25
mainnetV1_3Epoch = 33

mainnetMaxTxAmountLimit = 1e3 // unit is interface{} One
mainnetMaxNumRecentTxsPerAccountLimit = 1e2
@@ -46,6 +47,9 @@ type mainnetSchedule struct{}

func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance {
switch {
case epoch.Cmp(big.NewInt(mainnetV1_3Epoch)) >= 0:
// thirty-third resharding epoch around 9/18/2019 8:14:00 PDT
return mainnetV1_3
case epoch.Cmp(big.NewInt(mainnetV1_2Epoch)) >= 0:
// twenty-fifth resharding epoch around 09/06/2019 5:31am PDT
return mainnetV1_2
@@ -179,3 +183,4 @@ var mainnetV0_4 = MustNewInstance(4, 216, 148, genesis.HarmonyAccounts, genesis.
var mainnetV1 = MustNewInstance(4, 250, 170, genesis.HarmonyAccounts, genesis.FoundationalNodeAccountsV1, mainnetReshardingEpoch)
var mainnetV1_1 = MustNewInstance(4, 250, 170, genesis.HarmonyAccounts, genesis.FoundationalNodeAccountsV1_1, mainnetReshardingEpoch)
var mainnetV1_2 = MustNewInstance(4, 250, 170, genesis.HarmonyAccounts, genesis.FoundationalNodeAccountsV1_2, mainnetReshardingEpoch)
var mainnetV1_3 = MustNewInstance(4, 250, 170, genesis.HarmonyAccounts, genesis.FoundationalNodeAccountsV1_3, mainnetReshardingEpoch)
@@ -27,6 +27,10 @@ func TestMainnetInstanceForEpoch(t *testing.T) {
big.NewInt(25),
mainnetV1_2,
},
{
big.NewInt(33),
mainnetV1_3,
},
}

for _, test := range tests {

0 comments on commit 0903a96

Please sign in to comment.
You can’t perform that action at this time.