2021-08-27 19:25:43 +00:00
|
|
|
//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-10-01 19:39:45 +00:00
|
|
|
miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner"
|
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-09-23 20:12:22 +00:00
|
|
|
var UpgradeAssemblyHeight = abi.ChainEpoch(-5)
|
|
|
|
|
|
|
|
const UpgradeTapeHeight = -6
|
|
|
|
const UpgradeLiftoffHeight = -7
|
|
|
|
const UpgradeKumquatHeight = -8
|
|
|
|
const UpgradeCalicoHeight = -9
|
|
|
|
const UpgradePersianHeight = -10
|
|
|
|
const UpgradeClausHeight = -11
|
|
|
|
const UpgradeOrangeHeight = -12
|
|
|
|
const UpgradeTrustHeight = -13
|
|
|
|
const UpgradeNorwegianHeight = -14
|
|
|
|
const UpgradeTurboHeight = -15
|
|
|
|
const UpgradeHyperdriveHeight = -16
|
2021-10-01 21:53:12 +00:00
|
|
|
const UpgradeChocolateHeight = 3700
|
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-10-01 19:39:45 +00:00
|
|
|
|
|
|
|
// To test out what this proposal would like on devnets / testnets: https://github.com/filecoin-project/FIPs/pull/190
|
|
|
|
miner6.FaultMaxAge = miner6.WPoStProvingPeriod * 42
|
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
|