2021-06-09 16:32:08 +00:00
|
|
|
package kit
|
2021-05-18 20:32:10 +00:00
|
|
|
|
|
|
|
import (
|
2021-05-21 18:46:58 +00:00
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
2021-05-18 20:32:10 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
2021-05-21 19:39:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/build"
|
2021-05-18 20:32:10 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
|
|
logging "github.com/ipfs/go-log/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
_ = logging.SetLogLevel("*", "INFO")
|
|
|
|
|
|
|
|
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2048))
|
|
|
|
policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)
|
|
|
|
policy.SetMinVerifiedDealSize(abi.NewStoragePower(256))
|
2021-05-21 18:46:58 +00:00
|
|
|
|
|
|
|
err := os.Setenv("BELLMAN_NO_GPU", "1")
|
|
|
|
if err != nil {
|
|
|
|
panic(fmt.Sprintf("failed to set BELLMAN_NO_GPU env variable: %s", err))
|
|
|
|
}
|
2021-05-21 19:39:41 +00:00
|
|
|
build.InsecurePoStValidation = true
|
2021-05-18 20:32:10 +00:00
|
|
|
}
|