lotus/build/params_calibnet.go

65 lines
1.5 KiB
Go
Raw Normal View History

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"
"github.com/filecoin-project/lotus/chain/actors/policy"
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
)
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandMainnet,
}
const BootstrappersFile = "calibnet.pi"
const GenesisFile = "calibnet.car"
const UpgradeBreezeHeight = -1
const BreezeGasTampingDuration = 120
const UpgradeSmokeHeight = -2
const UpgradeIgnitionHeight = -3
const UpgradeRefuelHeight = -4
var UpgradeActorsV2Height = abi.ChainEpoch(30)
const UpgradeTapeHeight = 60
const UpgradeLiftoffHeight = -5
const UpgradeKumquatHeight = 90
2021-02-19 22:42:16 +00:00
const UpgradeCalicoHeight = 100
const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 1)
2021-01-05 05:32:15 +00:00
2021-02-19 22:42:16 +00:00
const UpgradeClausHeight = 250
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-02-19 22:42:16 +00:00
const UpgradeActorsV3Height = 600
const UpgradeNorwegianHeight = 114000
2021-01-19 03:42:23 +00:00
2021-01-05 05:32:15 +00:00
func init() {
2021-02-19 23:00:28 +00:00
policy.SetConsensusMinerMinPower(abi.NewStoragePower(32 << 30))
2021-01-05 05:32:15 +00:00
policy.SetSupportedProofTypes(
abi.RegisteredSealProof_StackedDrg32GiBV1,
abi.RegisteredSealProof_StackedDrg64GiBV1,
)
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