|
|
@ -13,6 +13,7 @@ const ( |
|
|
|
mainnetV2Epoch = 5 |
|
|
|
mainnetV2Epoch = 5 |
|
|
|
|
|
|
|
|
|
|
|
mainnetVdfDifficulty = 50000 // This takes about 100s to finish the vdf
|
|
|
|
mainnetVdfDifficulty = 50000 // This takes about 100s to finish the vdf
|
|
|
|
|
|
|
|
mainnetConsensusRatio = float64(0.66) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// MainnetSchedule is the mainnet sharding configuration schedule.
|
|
|
|
// MainnetSchedule is the mainnet sharding configuration schedule.
|
|
|
@ -63,6 +64,11 @@ func (ms mainnetSchedule) VdfDifficulty() int { |
|
|
|
return mainnetVdfDifficulty |
|
|
|
return mainnetVdfDifficulty |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ConsensusRatio ratio of new nodes vs consensus total nodes
|
|
|
|
|
|
|
|
func (ms mainnetSchedule) ConsensusRatio() float64 { |
|
|
|
|
|
|
|
return mainnetConsensusRatio |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var mainnetReshardingEpoch = []*big.Int{big.NewInt(0), big.NewInt(mainnetV1Epoch)} |
|
|
|
var mainnetReshardingEpoch = []*big.Int{big.NewInt(0), big.NewInt(mainnetV1Epoch)} |
|
|
|
var mainnetV0 = MustNewInstance(4, 150, 112, genesis.HarmonyAccounts, genesis.FoundationalNodeAccounts, mainnetReshardingEpoch) |
|
|
|
var mainnetV0 = MustNewInstance(4, 150, 112, genesis.HarmonyAccounts, genesis.FoundationalNodeAccounts, mainnetReshardingEpoch) |
|
|
|
var mainnetV1 = MustNewInstance(4, 152, 112, genesis.HarmonyAccounts, genesis.FoundationalNodeAccountsV1, mainnetReshardingEpoch) |
|
|
|
var mainnetV1 = MustNewInstance(4, 152, 112, genesis.HarmonyAccounts, genesis.FoundationalNodeAccountsV1, mainnetReshardingEpoch) |
|
|
|