ce0c1d834f
* refactor: make GetEmbeddedBuiltinActorsBundle take network bundle name * update calibnet actor bundle to v12.0.0-rc.2, but include v12.0.0-rc.1 as calibrationnet-buggy.car * wip: calibnet unbork migration * calibnet: add buggy miner actor CID to actorMeta * fix incorrect buggy calibnet manifest * make UpgradeWatermelonFixHeight a build param * calibnet patch: check whether network is calibration from init actor state * add sanity checks to the v12 calibnet patch upgrade * address review
99 lines
2.8 KiB
Go
99 lines
2.8 KiB
Go
//go:build butterflynet
|
|
// +build butterflynet
|
|
|
|
package build
|
|
|
|
import (
|
|
"github.com/ipfs/go-cid"
|
|
|
|
"github.com/filecoin-project/go-address"
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
actorstypes "github.com/filecoin-project/go-state-types/actors"
|
|
"github.com/filecoin-project/go-state-types/network"
|
|
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
|
|
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
)
|
|
|
|
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
|
0: DrandMainnet,
|
|
}
|
|
|
|
const GenesisNetworkVersion = network.Version20
|
|
|
|
var NetworkBundle = "butterflynet"
|
|
var BundleOverrides map[actorstypes.Version]string
|
|
var ActorDebugging = false
|
|
|
|
const BootstrappersFile = "butterflynet.pi"
|
|
const GenesisFile = "butterflynet.car"
|
|
|
|
const UpgradeBreezeHeight = -1
|
|
const BreezeGasTampingDuration = 120
|
|
const UpgradeSmokeHeight = -2
|
|
const UpgradeIgnitionHeight = -3
|
|
const UpgradeRefuelHeight = -4
|
|
|
|
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
|
|
const UpgradeChocolateHeight = -17
|
|
const UpgradeOhSnapHeight = -18
|
|
const UpgradeSkyrHeight = -19
|
|
const UpgradeSharkHeight = -20
|
|
const UpgradeHyggeHeight = -21
|
|
const UpgradeLightningHeight = -22
|
|
const UpgradeThunderHeight = -23
|
|
|
|
const UpgradeWatermelonHeight = 400
|
|
|
|
// This fix upgrade only ran on calibrationnet
|
|
const UpgradeWatermelonFixHeight = -100
|
|
|
|
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)
|
|
|
|
func init() {
|
|
policy.SetSupportedProofTypes(SupportedProofTypes...)
|
|
policy.SetConsensusMinerMinPower(ConsensusMinerMinPower)
|
|
policy.SetMinVerifiedDealSize(MinVerifiedDealSize)
|
|
policy.SetPreCommitChallengeDelay(PreCommitChallengeDelay)
|
|
|
|
SetAddressNetwork(address.Testnet)
|
|
|
|
Devnet = true
|
|
|
|
BuildType = BuildButterflynet
|
|
}
|
|
|
|
const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds)
|
|
|
|
const PropagationDelaySecs = uint64(6)
|
|
|
|
var EquivocationDelaySecs = uint64(2)
|
|
|
|
// BootstrapPeerThreshold is the minimum number peers we need to track for a sync worker to start
|
|
const BootstrapPeerThreshold = 2
|
|
|
|
// ChainId defines the chain ID used in the Ethereum JSON-RPC endpoint.
|
|
// As per https://github.com/ethereum-lists/chains
|
|
const Eip155ChainId = 3141592
|
|
|
|
var WhitelistedBlock = cid.Undef
|