2021-08-27 19:25:43 +00:00
|
|
|
//go:build butterflynet
|
2021-01-28 18:15:04 +00:00
|
|
|
// +build butterflynet
|
|
|
|
|
|
|
|
package build
|
|
|
|
|
|
|
|
import (
|
2022-06-14 15:00:51 +00:00
|
|
|
"github.com/ipfs/go-cid"
|
|
|
|
|
2021-01-28 18:15:04 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
2022-09-06 15:49:29 +00:00
|
|
|
actorstypes "github.com/filecoin-project/go-state-types/actors"
|
2021-10-02 16:20:09 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/network"
|
2022-06-14 15:00:51 +00:00
|
|
|
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
|
|
|
|
|
2021-01-28 18:15:04 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
|
|
)
|
|
|
|
|
|
|
|
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
2024-01-25 00:40:46 +00:00
|
|
|
0: DrandMainnet,
|
|
|
|
UpgradeMangoHeight: DrandQuicknet,
|
2021-01-28 18:15:04 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 08:22:09 +00:00
|
|
|
const GenesisNetworkVersion = network.Version21
|
2021-10-02 16:20:09 +00:00
|
|
|
|
2022-05-25 16:16:11 +00:00
|
|
|
var NetworkBundle = "butterflynet"
|
2022-09-06 15:49:29 +00:00
|
|
|
var BundleOverrides map[actorstypes.Version]string
|
2023-01-13 19:11:13 +00:00
|
|
|
var ActorDebugging = false
|
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-06-14 01:02:08 +00:00
|
|
|
const UpgradeOhSnapHeight = -18
|
2022-09-06 15:49:29 +00:00
|
|
|
const UpgradeSkyrHeight = -19
|
2023-04-12 20:33:06 +00:00
|
|
|
const UpgradeSharkHeight = -20
|
|
|
|
const UpgradeHyggeHeight = -21
|
2023-07-17 15:55:51 +00:00
|
|
|
const UpgradeLightningHeight = -22
|
|
|
|
const UpgradeThunderHeight = -23
|
2023-11-20 18:31:06 +00:00
|
|
|
const UpgradeWatermelonHeight = -24
|
2022-03-01 03:57:40 +00:00
|
|
|
|
2024-01-25 08:22:09 +00:00
|
|
|
const UpgradeDragonHeight = 5760
|
2023-07-07 09:56:30 +00:00
|
|
|
|
2024-02-12 13:25:16 +00:00
|
|
|
const UpgradeMangoHeight = UpgradeDragonHeight + 100
|
2024-01-25 00:40:46 +00:00
|
|
|
|
2023-10-31 22:29:09 +00:00
|
|
|
// This fix upgrade only ran on calibrationnet
|
|
|
|
const UpgradeWatermelonFixHeight = -100
|
|
|
|
|
2023-11-15 18:07:26 +00:00
|
|
|
// This fix upgrade only ran on calibrationnet
|
|
|
|
const UpgradeWatermelonFix2Height = -101
|
|
|
|
|
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)
|
|
|
|
|
2023-08-11 14:36:17 +00:00
|
|
|
var EquivocationDelaySecs = uint64(2)
|
|
|
|
|
2021-01-28 18:15:04 +00:00
|
|
|
// 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
|
|
|
|
2023-01-13 19:11:13 +00:00
|
|
|
// ChainId defines the chain ID used in the Ethereum JSON-RPC endpoint.
|
|
|
|
// As per https://github.com/ethereum-lists/chains
|
|
|
|
const Eip155ChainId = 3141592
|
|
|
|
|
2022-06-14 03:29:45 +00:00
|
|
|
var WhitelistedBlock = cid.Undef
|