lotus/build/params_butterfly.go

63 lines
1.6 KiB
Go
Raw Normal View History

//go:build butterflynet
2021-01-28 18:15:04 +00:00
// +build butterflynet
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"
2021-04-09 06:58:22 +00:00
"github.com/ipfs/go-cid"
2021-01-28 18:15:04 +00:00
)
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandMainnet,
}
const BootstrappersFile = "butterflynet.pi"
const GenesisFile = "butterflynet.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-28 18:15:04 +00:00
const UpgradeTapeHeight = 60
const UpgradeLiftoffHeight = -5
const UpgradeKumquatHeight = 90
const UpgradeCalicoHeight = 120
const UpgradePersianHeight = 150
const UpgradeClausHeight = 180
const UpgradeOrangeHeight = 210
2021-05-06 05:44:11 +00:00
const UpgradeTrustHeight = 240
const UpgradeNorwegianHeight = UpgradeTrustHeight + (builtin2.EpochsInHour * 12)
const UpgradeTurboHeight = 8922
2021-09-15 15:22:25 +00:00
const UpgradeHyperdriveHeight = 9999998
const UpgradeChocolateHeight = 9999999
2021-01-28 18:15:04 +00:00
func init() {
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2 << 30))
policy.SetSupportedProofTypes(
abi.RegisteredSealProof_StackedDrg512MiBV1,
)
SetAddressNetwork(address.Testnet)
Devnet = true
2021-04-21 22:52:18 +00:00
BuildType = BuildButterflynet
2021-01-28 18:15:04 +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 = 2
2021-04-09 06:58:22 +00:00
var WhitelistedBlock = cid.Undef