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"
|
2021-10-02 16:20:09 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/network"
|
2022-05-26 19:14:29 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors"
|
2021-01-28 18:15:04 +00:00
|
|
|
"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,
|
|
|
|
}
|
|
|
|
|
2022-06-14 01:02:08 +00:00
|
|
|
const GenesisNetworkVersion = network.Version15
|
2021-10-02 16:20:09 +00:00
|
|
|
|
2022-05-25 16:16:11 +00:00
|
|
|
var NetworkBundle = "butterflynet"
|
feat: refactor: actor bundling system (#8838)
1. Include the builtin-actors in the lotus source tree.
2. Embed the bundle on build instead of downloading at runtime.
3. Avoid reading the bundle whenever possible by including bundle
metadata (the bundle CID, the actor CIDs, etc.).
4. Remove everything related to dependency injection.
1. We're no longer downloading the bundle, so doing anything ahead
of time doesn't really help.
2. We register the manifests on init because, unfortunately, they're
global.
3. We explicitly load the current actors bundle in the genesis
state-tree method.
4. For testing, we just change the in-use bundle with a bit of a
hack. It's not great, but using dependency injection doesn't make
any sense either because, again, the manifest information is
global.
5. Remove the bundle.toml file. Bundles may be overridden by
specifying an override path in the parameters file, or an
environment variable.
fixes #8701
2022-06-13 17:15:00 +00:00
|
|
|
var BundleOverrides map[actors.Version]string
|
2022-05-25 16:16:11 +00:00
|
|
|
|
2021-01-28 18:15:04 +00:00
|
|
|
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
|
2022-01-07 05:37:14 +00:00
|
|
|
const UpgradeChocolateHeight = -17
|
2022-01-11 22:37:06 +00:00
|
|
|
|
2022-06-14 01:02:08 +00:00
|
|
|
const UpgradeOhSnapHeight = -18
|
2021-01-28 18:15:04 +00:00
|
|
|
|
2022-06-14 01:02:08 +00:00
|
|
|
const UpgradeSkyrHeight = abi.ChainEpoch(50)
|
2022-03-01 03:57:40 +00:00
|
|
|
|
2022-04-24 05:48:07 +00:00
|
|
|
var SupportedProofTypes = []abi.RegisteredSealProof{
|
|
|
|
abi.RegisteredSealProof_StackedDrg512MiBV1,
|
|
|
|
abi.RegisteredSealProof_StackedDrg32GiBV1,
|
|
|
|
abi.RegisteredSealProof_StackedDrg64GiBV1,
|
|
|
|
}
|
|
|
|
var ConsensusMinerMinPower = abi.NewStoragePower(2 << 30)
|
|
|
|
var MinVerifiedDealSize = abi.NewStoragePower(1 << 20)
|
|
|
|
var PreCommitChallengeDelay = abi.ChainEpoch(150)
|
|
|
|
|
2021-01-28 18:15:04 +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-28 18:15:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2022-06-14 03:02:02 +00:00
|
|
|
var WhitelistedBlock = MustParseCid("bafy2bzaced6uuyvoidi5gmqk6wsx7hlchpjfvzrkqlbnto2p5tvzcnaf6gmey")
|