53 lines
1.3 KiB
Go
53 lines
1.3 KiB
Go
|
// +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"
|
||
|
)
|
||
|
|
||
|
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
|
||
|
|
||
|
var UpgradeActorsV2Height = abi.ChainEpoch(30)
|
||
|
|
||
|
const UpgradeTapeHeight = 60
|
||
|
const UpgradeLiftoffHeight = -5
|
||
|
const UpgradeKumquatHeight = 90
|
||
|
const UpgradeCalicoHeight = 120
|
||
|
const UpgradePersianHeight = 150
|
||
|
const UpgradeClausHeight = 180
|
||
|
const UpgradeOrangeHeight = 210
|
||
|
const UpgradeActorsV3Height = 240
|
||
|
|
||
|
func init() {
|
||
|
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2 << 30))
|
||
|
policy.SetSupportedProofTypes(
|
||
|
abi.RegisteredSealProof_StackedDrg512MiBV1,
|
||
|
)
|
||
|
|
||
|
SetAddressNetwork(address.Testnet)
|
||
|
|
||
|
Devnet = true
|
||
|
}
|
||
|
|
||
|
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
|