|
|
@ -27,7 +27,7 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
func (testnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { |
|
|
|
func (testnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { |
|
|
|
switch { |
|
|
|
switch { |
|
|
|
case epoch.Cmp(params.PangaeaChainConfig.StakingEpoch) >= 0: |
|
|
|
case epoch.Cmp(params.TestnetChainConfig.StakingEpoch) >= 0: |
|
|
|
return testnetV1 |
|
|
|
return testnetV1 |
|
|
|
default: // genesis
|
|
|
|
default: // genesis
|
|
|
|
return testnetV0 |
|
|
|
return testnetV0 |
|
|
@ -77,8 +77,8 @@ func (ts testnetSchedule) GetShardingStructure(numShard, shardID int) []map[stri |
|
|
|
|
|
|
|
|
|
|
|
var testnetReshardingEpoch = []*big.Int{ |
|
|
|
var testnetReshardingEpoch = []*big.Int{ |
|
|
|
big.NewInt(0), |
|
|
|
big.NewInt(0), |
|
|
|
params.PangaeaChainConfig.StakingEpoch, |
|
|
|
params.TestnetChainConfig.StakingEpoch, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var testnetV0 = MustNewInstance(3, 10, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch()) |
|
|
|
var testnetV0 = MustNewInstance(3, 10, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch()) |
|
|
|
var testnetV1 = MustNewInstance(3, 10, 3, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch()) |
|
|
|
var testnetV1 = MustNewInstance(3, 20, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch()) |
|
|
|