fetch testing-fwp bundle

use testing-fwp bundle when InsecurePostValidation is true

testing-fwp is testing-fake-proofs
This commit is contained in:
vyzo
2022-04-26 18:38:52 +03:00
parent 52d5d57460
commit 30ed272aa9
2 changed files with 12 additions and 3 deletions
+10 -1
View File
@@ -53,8 +53,17 @@ func LoadBuiltinActorsTesting(lc fx.Lifecycle, mctx helpers.MetricsCtx, bs dtype
base = "."
}
var template string
if build.InsecurePoStValidation {
template = "%s/build/builtin-actors/v%d/builtin-actors-testing-fake-proofs.car"
} else {
template = "%s/build/builtin-actors/v%d/builtin-actors-testing.car"
}
for _, ver := range []actors.Version{actors.Version8} {
path := fmt.Sprintf("%s/build/builtin-actors/v%d/builtin-actors-testing.car", base, ver)
path := fmt.Sprintf(template, base, ver)
log.Infof("loading testing bundle: %s", path)
file, err := os.Open(path)
if err != nil {