From 549afbaa5fa76bedee74d617735365c818e0d27b Mon Sep 17 00:00:00 2001 From: zgfzgf <1901989065@qq.com> Date: Sat, 21 Nov 2020 10:04:07 +0800 Subject: [PATCH 1/2] add policy 8m and 512m --- cmd/lotus-bench/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-bench/main.go b/cmd/lotus-bench/main.go index b246aedbb36..31fa32019ec 100644 --- a/cmd/lotus-bench/main.go +++ b/cmd/lotus-bench/main.go @@ -175,7 +175,7 @@ var sealBenchCmd = &cli.Command{ }, }, Action: func(c *cli.Context) error { - policy.AddSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1) + policy.AddSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1, abi.RegisteredSealProof_StackedDrg8MiBV1, abi.RegisteredSealProof_StackedDrg512MiBV1) if c.Bool("no-gpu") { err := os.Setenv("BELLMAN_NO_GPU", "1") From e197038b9fd0e3e6b342b01d54ab4e793604522f Mon Sep 17 00:00:00 2001 From: zgfzgf <1901989065@qq.com> Date: Sat, 21 Nov 2020 10:14:13 +0800 Subject: [PATCH 2/2] delete policy useless code --- cmd/lotus-bench/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/lotus-bench/main.go b/cmd/lotus-bench/main.go index 31fa32019ec..41d1d53baaf 100644 --- a/cmd/lotus-bench/main.go +++ b/cmd/lotus-bench/main.go @@ -32,7 +32,6 @@ import ( lapi "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/actors/builtin/miner" - "github.com/filecoin-project/lotus/chain/actors/policy" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/genesis" ) @@ -175,8 +174,6 @@ var sealBenchCmd = &cli.Command{ }, }, Action: func(c *cli.Context) error { - policy.AddSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1, abi.RegisteredSealProof_StackedDrg8MiBV1, abi.RegisteredSealProof_StackedDrg512MiBV1) - if c.Bool("no-gpu") { err := os.Setenv("BELLMAN_NO_GPU", "1") if err != nil {