32a699d6a3
Addresses: *a307e4593a (r491966115)
*a307e4593a (r491966634)
Note: This puts everything into a policy package to avoid a dependency cycle between the build package, the miner package, and the types package. This is also why I introduced a GetPreCommitChallengeDelay function and removed the variable.
35 lines
797 B
Go
35 lines
797 B
Go
// +build !debug
|
|
// +build !2k
|
|
// +build !testground
|
|
|
|
package build
|
|
|
|
import (
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
|
|
builtin0 "github.com/filecoin-project/specs-actors/actors/builtin"
|
|
)
|
|
|
|
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
|
0: DrandIncentinet,
|
|
UpgradeSmokeHeight: DrandMainnet,
|
|
}
|
|
|
|
const UpgradeBreezeHeight = 41280
|
|
const BreezeGasTampingDuration = 120
|
|
|
|
const UpgradeSmokeHeight = 51000
|
|
|
|
func init() {
|
|
policy.SetConsensusMinerMinPower(abi.NewStoragePower(10 << 40))
|
|
policy.SetSupportedProofTypes(
|
|
abi.RegisteredSealProof_StackedDrg32GiBV1,
|
|
abi.RegisteredSealProof_StackedDrg64GiBV1,
|
|
)
|
|
}
|
|
|
|
const BlockDelaySecs = uint64(builtin0.EpochDurationSeconds)
|
|
|
|
const PropagationDelaySecs = uint64(6)
|