lotus/build/params_2k.go

54 lines
1.1 KiB
Go
Raw Normal View History

2020-04-17 15:58:20 +00:00
// +build debug 2k
package build
import (
"math"
"os"
2020-09-07 03:49:10 +00:00
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/actors/policy"
2020-04-17 15:58:20 +00:00
)
2020-09-09 21:10:35 +00:00
const UpgradeBreezeHeight = -1
const BreezeGasTampingDuration = 0
const UpgradeSmokeHeight = -1
2020-09-24 21:30:11 +00:00
const UpgradeIgnitionHeight = -2
2020-10-06 21:47:03 +00:00
const UpgradeRefuelHeight = -3
const UpgradeTapeHeight = -4
var UpgradeActorsV2Height = abi.ChainEpoch(10)
var UpgradeLiftoffHeight = abi.ChainEpoch(-5)
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandMainnet,
}
2020-04-17 15:58:20 +00:00
func init() {
policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2048))
policy.SetMinVerifiedDealSize(abi.NewStoragePower(256))
2020-06-01 18:43:51 +00:00
if os.Getenv("LOTUS_DISABLE_V2_ACTOR_MIGRATION") == "1" {
UpgradeActorsV2Height = math.MaxInt64
UpgradeLiftoffHeight = 11
}
2020-06-01 18:43:51 +00:00
BuildType |= Build2k
2020-04-17 15:58:20 +00:00
}
2020-09-14 04:25:54 +00:00
const BlockDelaySecs = uint64(4)
2020-04-17 15:58:20 +00:00
2020-08-07 15:51:35 +00:00
const PropagationDelaySecs = uint64(1)
2020-04-17 15:58:20 +00:00
// SlashablePowerDelay is the number of epochs after ElectionPeriodStart, after
// which the miner is slashed
//
// Epochs
const SlashablePowerDelay = 20
// Epochs
const InteractivePoRepConfidence = 6