Skip to content

Commit

Permalink
[p3] sharding configuration for p3 launch
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Chen <[email protected]>
  • Loading branch information
Leo Chen committed Apr 26, 2020
1 parent 9bbc3d0 commit dbd813f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/configs/sharding/pangaea.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ var PangaeaSchedule pangaeaSchedule
type pangaeaSchedule struct{}

const (
// ~304 sec epochs for P2 of open staking
pangaeaBlocksPerEpoch = 38
// 8*450=3600 sec epochs for P3 of open staking
pangaeaBlocksPerEpoch = 450

pangaeaVdfDifficulty = 10000 // This takes about 20s to finish the vdf

Expand Down Expand Up @@ -80,5 +80,5 @@ var pangaeaReshardingEpoch = []*big.Int{
params.PangaeaChainConfig.StakingEpoch,
}

var pangaeaV0 = MustNewInstance(4, 60, 60, numeric.OneDec(), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, pangaeaReshardingEpoch, PangaeaSchedule.BlocksPerEpoch())
var pangaeaV1 = MustNewInstance(4, 110, 60, numeric.MustNewDecFromStr("0.68"), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, pangaeaReshardingEpoch, PangaeaSchedule.BlocksPerEpoch())
var pangaeaV0 = MustNewInstance(4, 30, 30, numeric.OneDec(), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, pangaeaReshardingEpoch, PangaeaSchedule.BlocksPerEpoch())
var pangaeaV1 = MustNewInstance(4, 110, 30, numeric.MustNewDecFromStr("0.68"), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, pangaeaReshardingEpoch, PangaeaSchedule.BlocksPerEpoch())

0 comments on commit dbd813f

Please sign in to comment.