You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
570 B
25 lines
570 B
5 years ago
|
package shardingconfig
|
||
|
|
||
|
import "math/big"
|
||
|
|
||
|
// MainnetSchedule is the mainnet sharding configuration schedule.
|
||
|
var MainnetSchedule mainnetSchedule
|
||
|
|
||
|
type mainnetSchedule struct{}
|
||
|
|
||
|
func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance {
|
||
|
switch {
|
||
|
//case epoch.Cmp(big.NewInt(1000)) >= 0:
|
||
|
// return mainnet6400
|
||
|
//case epoch.Cmp(big.NewInt(100)) >= 0:
|
||
|
// return mainnetV2
|
||
|
default: // genesis
|
||
|
return mainnetV0
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var mainnetV0 = MustNewInstance(4, 150, 112)
|
||
|
|
||
|
//var mainnetV2 = MustNewInstance(8, 200, 100)
|
||
|
//var mainnet6400 = MustNewInstance(16, 400, 50)
|