2021-06-18 18:45:29 +00:00
|
|
|
package kit
|
2021-06-11 17:26:25 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
2021-07-07 17:35:27 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/big"
|
2021-08-20 14:53:24 +00:00
|
|
|
logging "github.com/ipfs/go-log/v2"
|
|
|
|
|
2021-06-11 17:26:25 +00:00
|
|
|
"github.com/filecoin-project/lotus/build"
|
|
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
_ = logging.SetLogLevel("*", "INFO")
|
|
|
|
|
2021-07-07 17:35:27 +00:00
|
|
|
policy.SetProviderCollateralSupplyTarget(big.Zero(), big.NewInt(1))
|
2021-06-11 17:26:25 +00:00
|
|
|
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2048))
|
|
|
|
policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)
|
|
|
|
policy.SetMinVerifiedDealSize(abi.NewStoragePower(256))
|
|
|
|
|
|
|
|
build.InsecurePoStValidation = true
|
|
|
|
|
|
|
|
if err := os.Setenv("BELLMAN_NO_GPU", "1"); err != nil {
|
|
|
|
panic(fmt.Sprintf("failed to set BELLMAN_NO_GPU env variable: %s", err))
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := os.Setenv("LOTUS_DISABLE_WATCHDOG", "1"); err != nil {
|
|
|
|
panic(fmt.Sprintf("failed to set LOTUS_DISABLE_WATCHDOG env variable: %s", err))
|
|
|
|
}
|
|
|
|
}
|