Skip to content

Commit

Permalink
Fix testnet config for staking (#2182)
Browse files Browse the repository at this point in the history
* Add one-off block verification rule for beacon chain bad block

* Add more comment

* Fix testnet config
  • Loading branch information
rlan35 authored Feb 5, 2020
1 parent d98267c commit 1241ece
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/configs/sharding/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (

func (testnetSchedule) InstanceForEpoch(epoch *big.Int) Instance {
switch {
case epoch.Cmp(params.PangaeaChainConfig.StakingEpoch) >= 0:
case epoch.Cmp(params.TestnetChainConfig.StakingEpoch) >= 0:
return testnetV1
default: // genesis
return testnetV0
Expand Down Expand Up @@ -77,8 +77,8 @@ func (ts testnetSchedule) GetShardingStructure(numShard, shardID int) []map[stri

var testnetReshardingEpoch = []*big.Int{
big.NewInt(0),
params.PangaeaChainConfig.StakingEpoch,
params.TestnetChainConfig.StakingEpoch,
}

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())

0 comments on commit 1241ece

Please sign in to comment.