lotus/build/params_calibnet.go

90 lines
2.1 KiB
Go
Raw Normal View History

//go:build calibnet
2021-01-05 05:32:15 +00:00
// +build calibnet
package build
import (
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
2021-10-02 16:20:09 +00:00
"github.com/filecoin-project/go-state-types/network"
2021-01-05 05:32:15 +00:00
"github.com/filecoin-project/lotus/chain/actors/policy"
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
2021-04-09 06:58:22 +00:00
"github.com/ipfs/go-cid"
2021-01-05 05:32:15 +00:00
)
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandMainnet,
}
2021-10-02 16:20:09 +00:00
const GenesisNetworkVersion = network.Version0
2021-01-05 05:32:15 +00:00
const BootstrappersFile = "calibnet.pi"
const GenesisFile = "calibnet.car"
const UpgradeBreezeHeight = -1
const BreezeGasTampingDuration = 120
const UpgradeSmokeHeight = -2
const UpgradeIgnitionHeight = -3
const UpgradeRefuelHeight = -4
2021-05-06 05:44:11 +00:00
var UpgradeAssemblyHeight = abi.ChainEpoch(30)
2021-01-05 05:32:15 +00:00
const UpgradeTapeHeight = 60
const UpgradeLiftoffHeight = -5
const UpgradeKumquatHeight = 90
2021-06-18 19:45:21 +00:00
const UpgradeCalicoHeight = 120
2021-02-19 22:42:16 +00:00
const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 1)
2021-01-05 05:32:15 +00:00
2021-06-18 19:45:21 +00:00
const UpgradeClausHeight = 270
2021-01-05 05:32:15 +00:00
2021-02-19 22:42:16 +00:00
const UpgradeOrangeHeight = 300
2021-01-05 05:32:15 +00:00
2021-06-18 19:45:21 +00:00
const UpgradeTrustHeight = 330
2021-01-19 03:42:23 +00:00
2021-06-18 19:45:21 +00:00
const UpgradeNorwegianHeight = 360
2021-05-06 05:44:11 +00:00
2021-06-18 19:45:21 +00:00
const UpgradeTurboHeight = 390
const UpgradeHyperdriveHeight = 420
2021-10-02 21:28:46 +00:00
const UpgradeChocolateHeight = 312746
2021-09-15 15:22:25 +00:00
2022-02-04 20:37:07 +00:00
// 2022-02-10T19:23:00Z
const UpgradeOhSnapHeight = 682006
2021-11-04 15:59:29 +00:00
2022-04-24 05:48:07 +00:00
var SupportedProofTypes = []abi.RegisteredSealProof{
abi.RegisteredSealProof_StackedDrg32GiBV1,
abi.RegisteredSealProof_StackedDrg64GiBV1,
}
var ConsensusMinerMinPower = abi.NewStoragePower(32 << 30)
var MinVerifiedDealSize = abi.NewStoragePower(1 << 20)
var PreCommitChallengeDelay = abi.ChainEpoch(150)
2021-01-05 05:32:15 +00:00
func init() {
2022-04-24 05:48:07 +00:00
policy.SetSupportedProofTypes(SupportedProofTypes...)
policy.SetConsensusMinerMinPower(ConsensusMinerMinPower)
policy.SetMinVerifiedDealSize(MinVerifiedDealSize)
policy.SetPreCommitChallengeDelay(PreCommitChallengeDelay)
2021-01-05 05:32:15 +00:00
SetAddressNetwork(address.Testnet)
Devnet = true
2021-01-20 06:47:27 +00:00
BuildType = BuildCalibnet
2021-01-05 05:32:15 +00:00
}
const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds)
const PropagationDelaySecs = uint64(6)
// BootstrapPeerThreshold is the minimum number peers we need to track for a sync worker to start
const BootstrapPeerThreshold = 4
2021-04-09 06:58:22 +00:00
var WhitelistedBlock = cid.Undef