[devnet] shortne epoch time and increase slot to 50

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1899/head
Leo Chen 5 years ago
parent ac59cda530
commit 4c14e2b63a
  1. 4
      internal/configs/sharding/pangaea.go

@ -24,7 +24,7 @@ func (ps pangaeaSchedule) InstanceForEpoch(epoch *big.Int) Instance {
}
func (ps pangaeaSchedule) BlocksPerEpoch() uint64 {
return 2700 // 6 hours with 8 seconds/block
return 450 // 1 hour with 8 seconds/block
}
func (ps pangaeaSchedule) CalcEpochNumber(blockNum uint64) *big.Int {
@ -51,7 +51,7 @@ func (ps pangaeaSchedule) ConsensusRatio() float64 {
var pangaeaReshardingEpoch = []*big.Int{common.Big0}
var pangaeaV0 = MustNewInstance(
2, 40, 40, genesis.PangaeaAccounts, genesis.FoundationalPangaeaAccounts, pangaeaReshardingEpoch)
2, 50, 40, genesis.PangaeaAccounts, genesis.FoundationalPangaeaAccounts, pangaeaReshardingEpoch)
// TODO: remove it after randomness feature turned on mainnet
//RandonnessStartingEpoch returns starting epoch of randonness generation

Loading…
Cancel
Save