33 lines
783 B
Go
33 lines
783 B
Go
package kit
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"strings"
|
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
"github.com/filecoin-project/lotus/build"
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
logging "github.com/ipfs/go-log/v2"
|
|
)
|
|
|
|
func init() {
|
|
bin := os.Args[0]
|
|
if !strings.HasSuffix(bin, ".test") {
|
|
panic("package itests/kit must only be imported from tests")
|
|
}
|
|
|
|
_ = logging.SetLogLevel("*", "INFO")
|
|
|
|
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2048))
|
|
policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)
|
|
policy.SetMinVerifiedDealSize(abi.NewStoragePower(256))
|
|
|
|
err := os.Setenv("BELLMAN_NO_GPU", "1")
|
|
if err != nil {
|
|
panic(fmt.Sprintf("failed to set BELLMAN_NO_GPU env variable: %s", err))
|
|
}
|
|
build.InsecurePoStValidation = true
|
|
|
|
}
|