Skip to content

Commit 1241ece

Browse files
authored
Fix testnet config for staking (#2182)
* Add one-off block verification rule for beacon chain bad block * Add more comment * Fix testnet config
1 parent d98267c commit 1241ece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: internal/configs/sharding/testnet.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727

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

7878
var testnetReshardingEpoch = []*big.Int{
7979
big.NewInt(0),
80-
params.PangaeaChainConfig.StakingEpoch,
80+
params.TestnetChainConfig.StakingEpoch,
8181
}
8282

8383
var testnetV0 = MustNewInstance(3, 10, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch())
84-
var testnetV1 = MustNewInstance(3, 10, 3, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch())
84+
var testnetV1 = MustNewInstance(3, 20, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch())

0 commit comments

Comments
 (0)